From 59198679e9e4eac0f0b4e28870f6def3e4822222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didrik=20Finn=C3=B8y?= Date: Thu, 30 Jun 2022 21:48:26 +0200 Subject: [PATCH 1/3] Update kustomize.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolves #7835. 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..f8f220827bfd2 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 ArgoCD. +If you would like to render Helm charts through Kustomize in an ArgoCD 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, activating the `--enable-helm` flag globally for all Kustomize applications: + +``` +apiVersion: v1 +kind: ConfigMap +metadata: + name: argocd-cm + namespace: argocd +data: + kustomize.buildOptions: --load-restrictor LoadRestrictionsNone --enable-helm +``` + From 15e09f79f9ee897a5efa72779db23f7c57417416 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didrik=20Finn=C3=B8y?= Date: Fri, 1 Jul 2022 07:03:32 +0200 Subject: [PATCH 2/3] Removed unnecessary command flag from example. Minor text edits. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Didrik Finnøy --- docs/user-guide/kustomize.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user-guide/kustomize.md b/docs/user-guide/kustomize.md index f8f220827bfd2..cecfc4b89eb10 100644 --- a/docs/user-guide/kustomize.md +++ b/docs/user-guide/kustomize.md @@ -92,7 +92,7 @@ It's possible to [render Helm charts with Kustomize](https://github.com/kubernet 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 ArgoCD. If you would like to render Helm charts through Kustomize in an ArgoCD 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, activating the `--enable-helm` flag globally for all Kustomize applications: +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 @@ -101,6 +101,6 @@ metadata: name: argocd-cm namespace: argocd data: - kustomize.buildOptions: --load-restrictor LoadRestrictionsNone --enable-helm + kustomize.buildOptions: --enable-helm ``` From 5bd180cfbb11b50df7141872cc94e10fc216c9f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Didrik=20Finn=C3=B8y?= Date: Fri, 1 Jul 2022 19:42:39 +0200 Subject: [PATCH 3/3] spelling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Didrik Finnøy --- docs/user-guide/kustomize.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/user-guide/kustomize.md b/docs/user-guide/kustomize.md index cecfc4b89eb10..e377c9886b91a 100644 --- a/docs/user-guide/kustomize.md +++ b/docs/user-guide/kustomize.md @@ -90,8 +90,8 @@ Kustomize does not support parameters and therefore cannot support the standard 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 ArgoCD. -If you would like to render Helm charts through Kustomize in an ArgoCD application, you have two options: +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: ```