Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

Sadzeih
Copy link

@Sadzeih Sadzeih commented Jul 25, 2024

This should resolve #209

This should resolve opencost#209

Signed-off-by: Alexis Guerville <[email protected]>
@mattray
Copy link
Collaborator

mattray commented Jul 31, 2024

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.

Copy link
Collaborator

@toscott toscott left a 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 |
Copy link
Collaborator

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?

Copy link
Author

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 |
Copy link
Collaborator

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.

@toscott toscott closed this Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for an existing cloudProviderApiKey secret
3 participants