Open RemkoMolier opened 2 weeks ago
Hi @RemkoMolier,
Does your post-render script work when you execute it with Helm CLI? What is the difference in output when you execute it with and without your post-render script?
Thanks.
Hi @arybolovlev,
yes it does. It, amongst side effects like reformatting and removal of comments , adds two annotations and one label to each of the configurations.
These are the first couple of lines from the diff (after formatting the outputs with yamlfmt):
`diff 1d0 < # Source: cilium/templates/cilium-agent/serviceaccount.yaml 6a6,10
annotations: meta.helm.sh/release-name: cilium meta.helm.sh/release-namespace: kube-system labels: app.kubernetes.io/managed-by: Helm `
Regards,
Remko
Hi @RemkoMolier,
Thank you! It looks like we have the postrender
attribute in the helm_template
data source schema, but it has not been implemented.
Hi @arybolovlev thank you.
Is there anything I can do to help?
Regards,
Remko
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
values.yaml:
postrender:
Debug Output
N/A
Panic Output
N/A
Steps to Reproduce
terraform plan
Expected Behavior
Postrender to be executed by the helm template and the output should have been adapted
Actual Behavior
Postrender is not executed by the helm template and the output is not adapted accordingly.
Important Factoids
N/A
References
N/A
Community Note