-
Notifications
You must be signed in to change notification settings - Fork 115
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
Set Helm chart Values via full path as string instead of nesting objects. #2852
Comments
Thanks for the suggestion @morgan-cromell! I agree that the nested structure for setting values can be cumbersome especially in dotnet. We'll consider adding this for the next revision of |
@mjeffryes to be completely honest this feature seems to be counter-effective. We should be able to supply lists of |
@mmisztal1980 I don't think this feature is counter-effective. Even if you could supply a list of values file and override them you would still need a nested structure to override a nested value. I think the feature to supply |
@morgan-cromell I agree with you that we should have a more convenient way of referencing nested structures, however I'll still stand by my opinion that the primary source of configuration data for HELM charts, should originate from value-files, not from overrides. |
@mmisztal1980 my main use case is using helm templates from artifact hub and setting values that are connected to outputs from other resources. Dont see how i can do this with value files. |
I'm having a similar use case (we also rely on artifact hub, but we need to place charts in private-network registries), we tend to leave little to chance and prefer to have values files under source control (we've had values changed in upstream before, therefore we want strict control). We know that the chart contains defaults, however we prefer not to rely on them and conciously configure the entire chart in the way we prefer. I hope that sheds some light. Regarding your case, it's still perfectly legit to apply overrides onto the values files. This is why helm's CLI supports:
In the 1st place 😉 |
@mmisztal1980 So what we are saying is that we want both features? |
Pretty much, in order for the Chart functionality to be "complete" |
@mmisztal1980 You should probably create a separate issue if you haven't already for value files as it will probably be missed otherwise, |
will do |
@morgan-cromell @mmisztal1980 the upcoming Chart v4 resource (#2947) will support Regarding the original ask (specifying overrides by full path), our intention with the new resource is to better align it with Helm's upstream behavior. At the moment this means your values are effectively treated the same as if they had been marshaled to YAML and provided via |
@blampe great news being able to use values.yaml files. Would still like to see setting values with full path. This would properly mirror the - -set option. |
Yep, makes sense. One way to do that could be through a new |
Hello!
Issue details
Setting deeply nested values in a helm chart can be very cumbersome in some languages. Needing to define multiple dictionaries to set a deep value. I suggest the option to set the values by their full key instead. So example instead of setting a value like this:
You could set it like this
This would also better mirror values in the helm documentation.
Affected area/feature
The text was updated successfully, but these errors were encountered: