From 5ef48c11233f9b112bacf0125eecedc37b030779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didrik=20Finn=C3=B8y?= Date: Tue, 5 Jul 2022 16:47:38 +0200 Subject: [PATCH] docs: Document the possibility of rendering Helm charts with Kustomize (#9841) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update kustomize.md Resolves #7835. Signed-off-by: Didrik Finnøy * Removed unnecessary command flag from example. Minor text edits. Signed-off-by: Didrik Finnøy * spelling Signed-off-by: Didrik Finnøy --- docs/user-guide/kustomize.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/user-guide/kustomize.md b/docs/user-guide/kustomize.md index 0b62a0ff6c8f3..e377c9886b91a 100644 --- a/docs/user-guide/kustomize.md +++ b/docs/user-guide/kustomize.md @@ -85,3 +85,22 @@ argocd app set --kustomize-version v3.5.4 ## Build Environment Kustomize does not support parameters and therefore cannot support the standard [build environment](build-environment.md). + +## Kustomizing Helm charts + +It's possible to [render Helm charts with Kustomize](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/chart.md). +Doing so requires that you pass the `--enable-helm` flag to the `kustomize build` command. +This flag is not part of the Kustomize options within Argo CD. +If you would like to render Helm charts through Kustomize in an Argo CD application, you have two options: +You can either create a [custom plugin](https://argo-cd.readthedocs.io/en/stable/user-guide/config-management-plugins/), or modify the `argocd-cm` ConfigMap to include the `--enable-helm` flag globally for all Kustomize applications: + +``` +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-cm + namespace: argocd +data: + kustomize.buildOptions: --enable-helm +``` +