Open mkhpalm opened 2 years ago
Thanks @mkhpalm for the suggestion, is this a feature you can help contribute? Thanks.
I started looking at this today and noticed Helm may be adopting an enhancement HIP 0016
that implements export-values
. Rather than modify the opensearch
and opensearch-dashboards
charts to support global context a user would be able to push values to the sub-charts from a new parent chart like opensearch-cluster
.
If adopted and merged, export-values would likely be a more succinct and straight forward approach to accomplish the same thing. If they do not adopt then I can possibly come up with a PR to support the things that would be best without needing to repeat for an individual cluster's different roles.
Is your feature request related to a problem? Please describe.
Add support for some values being read from the global context.
Describe the solution you'd like
I think the role based reusable chart that currently exists is a good approach for opensearch. But if that chart was able to read common (to the cluster) values from
global
then an umbrella chart could be made to stand up an entire cluster with a single helm release. Its also useful if somebody doesn't want an umbrella chart but just wants to re-use some cluster environment config to all the different roles they are deploying. (e.g.-f common.yaml -f role-values.yaml
)https://helm.sh/docs/chart_template_guide/subcharts_and_globals/
Some specific values that would be nice to define in
global
Describe alternatives you've considered
There are always operators which are sometimes nice but often have their own k8s cluster wide pitfalls for end users.
Additional context
Assuming the opensearch chart supported global for repetitive release defaults. A Chart.yaml for an
opensearch-cluster
umbrella chart might looks something like:Then an oversimplified values example for this umbrella chart would possibly looks something like this:
Note: I realize that a higher level "umbrella" chart is not the point of this ticket. The purpose of this request is just to add global support to the existing opensearch chart. So people who want umbrella charts or just want to use common cluster values files can avoid repeating themselves in role releases.