argo-cd-helmfile
argo-cd-helmfile copied to clipboard
kustomize patches support for dependencies
I have a helmfile with some dependencies and kustomize patches to modify some resources installed by the dependency.
the helmfile fails because --skip-deps is hardcoded in the argo-cd-helmfile.sh, so kustomize can't find the dependency resources (it works fine if I run helmfile manually without --skip-deps)
- Is there a reason why
--skip-depsis hardcoded in the plugin? - Is there a way to apply kustomize patches on dependencies using this plugin?
Thanks!
You could use the postRenderer Helm feature and feed the entire stdout of helmfile template into a kustomize wrapper.
It uses skip deps to increase performance and split the logic to align with argocd semantics. Argocd has an init phase which is when the deps should be pulled etc, and then a generate phase which is when the templating happens.