RedHatInsights / insights-core-messaging

Messaging services for processing archives with insights-core.
Apache License 2.0
9 stars 15 forks source link

Problem with environment variable substitution in OpenShift templates #17

Open joselsegura opened 4 years ago

joselsegura commented 4 years ago

When you are deploying a service using insights-core-messaging in a OpenShift environment using templates, the ${VAR} environment substitution is taken by OpenShift itself and tries to find a VAR parameter into the template.

This problem can be solved using the form $VAR (without brackets), but I'm not sure how it will work with defaulting environment variables like ${VAR:default_value}.

csams commented 4 years ago

I think you'll have to pick one: either let ICM do the substitution or use openshift templates. @jhjaggars thoughts here?

jhjaggars commented 4 years ago

If you are deploying with k8s/openshift (and I'm pretty sure you will be), I'd just use the templates provided by that system.

joselsegura commented 4 years ago

I'm currently using the $VAR_NAME alternative (without brackets and without default value) and it works fine in Openshift.

Thank you for your answers