Is your feature request related to a problem? Please describe.
I'm using the chart to deploy OpenSearch with additional extraObjects, but I can't include template in these objects.
This is because the extraManifests.yml descriptor converts the given object to yaml and { (or other reserved characters) are not allowed if not escaped. This is not an issue for simple string such as object name, as we can quote them, but it is when you try to include template such as opensearch.labels as you can't quote such include.
You can find below an example that leads to the error: error converting YAML to JSON: yaml: line XX: did not find expected key
Describe the solution you'd like
One way to make this working is to give the whole object as a string, this is what Bitnami is using in their charts, see https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_tplvalues.tpl.
By improving this part, we will be able to give the object as string and template it with the tpl function, the object will look like that:
Is your feature request related to a problem? Please describe. I'm using the chart to deploy OpenSearch with additional
extraObjects
, but I can't include template in these objects.This is because the extraManifests.yml descriptor converts the given object to yaml and
{
(or other reserved characters) are not allowed if not escaped. This is not an issue for simple string such as object name, as we can quote them, but it is when you try to include template such asopensearch.labels
as you can't quote such include.You can find below an example that leads to the error: error converting YAML to JSON: yaml: line XX: did not find expected key
Describe the solution you'd like One way to make this working is to give the whole object as a string, this is what Bitnami is using in their charts, see https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_tplvalues.tpl. By improving this part, we will be able to give the object as string and template it with the tpl function, the object will look like that:
Describe alternatives you've considered Currently, to be able to deploy my object I'm listing all labels and quoting template calls such as below:
Additional context I'm using the opensearch 1.x chart, would it be possible to backport the change?