-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Support helm post renderers #3698
Copy link
Copy link
Open
Labels
component:config-managementTools specific issues (helm, kustomize etc)Tools specific issues (helm, kustomize etc)enhancementNew feature or requestNew feature or requesttype:usabilityEnhancement of an existing featureEnhancement of an existing feature
Metadata
Metadata
Assignees
Labels
component:config-managementTools specific issues (helm, kustomize etc)Tools specific issues (helm, kustomize etc)enhancementNew feature or requestNew feature or requesttype:usabilityEnhancement of an existing featureEnhancement of an existing feature
Summary
Helm 3.1 added support for Post Renderering. This is the helm developers solution for last mile configuration, for instance with kustomize. See https://helm.sh/docs/topics/advanced/#post-rendering
Motivation
I would like to use this to kustomize some helm charts that do not quite support what I need. For instance the stable/jenkins helm chart does not give me the ability to add additional paths to the ingress object. Using the post renderer we could use kustomize to patch the ingress with additional paths such as a redirect from port 80 to 443 with the alb ingress controller.
Proposal
I think the Application's helm section could be extended with a
postRenderersection. There probably be some gotchas with ensuring the post renderer was available inside the argocd-repo-server but I do not believe this would be any different than custom config management plugins.edit: It would also be nice if this supported kustomize nicely. Checking out https://github.com/thomastaylor312/advanced-helm-demos/tree/master/post-render it seems like they needed to wrap kustomize in a script that wrote out the templated helm, then applied kustomize to it.