Interview Prep/Helm/Schema, Helmfile, Argo CD & Secrets

How do you use Helm with Kustomize in Argo CD or kubectl?

AdvancedConceptSchema, Helmfile, Argo CD & Secrets
Answer

Kustomize can inflate charts with its helmCharts field (requires --enable-helm):

# kustomization.yaml
helmCharts:
  - name: ingress-nginx
    repo: https://kubernetes.github.io/ingress-nginx
    version: 4.11.3
    releaseName: ingress
    namespace: ingress-nginx
    valuesFile: values.yaml
patches:
  - path: add-annotations.yaml
kustomize build --enable-helm . | kubectl apply -f -

Argo CD supports it with kustomize.buildOptions: --enable-helm. Like Argo CD's Helm support, this is template-only: no release record, no Helm hooks execution.

All Helm questions Roadmap: Helm

More on Schema, Helmfile, Argo CD & Secrets