I'm not sure how to approach a problem I have. Potentially it could result in a feature proposal, or we could just decide it isn't desired functionality. I would appreciate some guidance and discussion.
I am creating a chart which has a subchart.
The subchart values.yaml file has a list item.
In the main chart I need to add an entry to that list.
This works fine, however if a user of my chart wants to set subchart.foo they will override my list completely. Ideally I want the user's list and the chart list to be merged, however that would mean they couldn't override the value if they wanted to.
If there wasn't a subchart dependency I would just put the values directly in the template, or have two lists sequentially in the template. However I don't have control over the templates.
I see three solutions:
Merge lists by default with the flag to override
Override lists by default with a flag to merge
Add way to override templates
I'm not sure how to approach a problem I have. Potentially it could result in a feature proposal, or we could just decide it isn't desired functionality. I would appreciate some guidance and discussion.
I am creating a chart which has a subchart.
The subchart
values.yamlfile has a list item.In the main chart I need to add an entry to that list.
This works fine, however if a user of my chart wants to set
subchart.foothey will override my list completely. Ideally I want the user's list and the chart list to be merged, however that would mean they couldn't override the value if they wanted to.If there wasn't a subchart dependency I would just put the values directly in the template, or have two lists sequentially in the template. However I don't have control over the templates.
I see three solutions:Merge lists by default with the flag to overrideOverride lists by default with a flag to mergeAdd way to override templates