-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow other forms of extra env variables to allow secrets #218
Conversation
This should resolve opencost#209 Signed-off-by: Alexis Guerville <[email protected]>
Signed-off-by: Matt Ray <[email protected]>
I don't have cycles to test it, but the patch looks good. If someone else gives it a thumbs up I'll merge and release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given there is an existing property that has this behavior and this is a breaking change, going to decline this one. Please let me know if I am misunderstanding something here..
@@ -64,7 +64,7 @@ $ helm install opencost opencost/opencost | |||
| opencost.exporter.defaultClusterId | string | `"default-cluster"` | Default cluster ID to use if cluster_id is not set in Prometheus metrics. | | |||
| opencost.exporter.env | list | `[]` | List of additional environment variables to set in the container | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this existing variable (env instead of extraEnv) not provide whats needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's definitely a misread on my part, didn't realize there was two ways of adding environment variables, and since the "standard" is extraEnv
in most helm charts, I didn't look further. Thanks!
@@ -64,7 +64,7 @@ $ helm install opencost opencost/opencost | |||
| opencost.exporter.defaultClusterId | string | `"default-cluster"` | Default cluster ID to use if cluster_id is not set in Prometheus metrics. | | |||
| opencost.exporter.env | list | `[]` | List of additional environment variables to set in the container | | |||
| opencost.exporter.extraArgs | list | `[]` | List of extra arguments for the command, e.g.: log-format=json | | |||
| opencost.exporter.extraEnv | object | `{}` | Any extra environment variables you would like to pass on to the pod | | |||
| opencost.exporter.extraEnv | list | `[]` | A list of extra environment variables you would like to pass on to the pod | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swapping the type of object is backwards incompatible. For the sanity of downstream users, I recommend we keep breaking changes to only those absolutely required, and when we do we increment the chart major version.
This should resolve #209