argo-cd-helmfile icon indicating copy to clipboard operation
argo-cd-helmfile copied to clipboard

kustomize patches support for dependencies

Open theblop opened this issue 1 year ago • 1 comments
trafficstars

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-deps is hardcoded in the plugin?
  • Is there a way to apply kustomize patches on dependencies using this plugin?

Thanks!

theblop avatar Aug 22 '24 10:08 theblop

You could use the postRenderer Helm feature and feed the entire stdout of helmfile template into a kustomize wrapper.

crabique avatar Mar 08 '25 18:03 crabique

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.

travisghansen avatar Jun 15 '25 15:06 travisghansen