Elasticsearch: Allow specifying extraContainers as a map
See original GitHub issueDescribe the feature:
Currently, the Elasticsearch chart supports specifying extraContainers
as a YAML array (or a templatable string for backward compatibility). This is fine for simple use cases, but not convenient if overriding via multiple values files is desired.
This feature request is to additionally support providing extraContainers
as a map, which would facilitate overrides through multiple layers of values files.
Describe a specific use case for the feature:
Consider a simple my-values.yaml
file:
extraContainers:
- name: do-something
image: my-image
command: ['do', 'something']
I want to make use of helm’s file merging to override the image name in subsequent deploy steps using a separate my-values.override.yaml
file. Under the current implementation, this will require me to duplicate the entire spec:
extraContainers:
- name: do-something
image: my-override-image
command: ['do', 'something']
This repetition is not convenient and will cause a lot of maintenance issues. The proposed implementation would be to allow expressing my-values.yaml
like so:
extraContainers:
something:
name: do-something
image: my-image
command: ['do', 'something']
Which could then be overridden by another my-values.override.yaml
:
extraContainers:
something:
image: my-override-image
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (4 by maintainers)
Top GitHub Comments
Hi @jmlrt,
Thanks for following up. This can be implemented while preserving current behavior. I already have an implementation for this particular use case in a fork. I can take some time to generalize it and convert it to a viable PR.
This issue has been automatically closed because it has not had recent activity since being marked as stale.