Ability to Deep Merge of Values files
long-term
B
Beige Hummingbird
New Feature Request: for the ability to deep merge of values files (much like what's going on here: https://github.com/helm/helm/issues/3486)
Log In
Rohan Gupta
Merged in a post:
Support merging of values.yaml files during K8s deployment
Ash
Currently, Harness seems to take the value of a particular field within a values yaml override file that gets referenced last during the deployment.
We had some users ask if there's an option or flag that would do a merge of the files then do the deployment.
For example, say you had a field called alerts and it's a list. You have two values yaml override files that reference the field.
File 1
alerts:
db_warning
File 2
alerts:
memory_warning
Is there an option that would merge them (using a feature flag etc.) to:
alerts:
db_warning
memory_warning
Currently, only memory_warning would get applied.
Ash
This request was created on behalf of Imad(imad.al-madi@kroger.com) from Kroger.
Sudarshan Purohit
long-term
Sudarshan Purohit
This may not be immediately viable since the meaning of "deep merge" changes with the datatype. I see that the original Helm PR is also set aside, for the same reason. We could consider specific additional operations beside merge at some point, if the use case is very specific and clear.
We will wait for additional use cases around this to come before we dig into possible designs for the feature.