This plugin will run kustomize build --enable-helm
.
Examples are provided with plain Kubernetes manifests, Codefresh's Helm chart, the community Helm chart, and kustomize.
kubectl apply -f https://raw.githubusercontent.com/todaywasawesome/argocd-cmp-plugin-examples/main/examples/kustomize-with-helm/plain-manifests/kustomize-build-with-helm.configmap.yaml
Note: this example uses an image that supports a specific version of Kubernetes, verify the file matches your version.
We do not recommend applying the example manifest directly from this repo, instead review the examples and modify your instance accordingly.
A CMP is not required to just modify Kustomize options. You can enable Helm by updating your Argo CD Configmap like this:
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-cm
namespace: argocd
data:
kustomize.buildOptions: --enable-helm
More info from Argo CD Docs.
If you would like to add Helm support for a single application that can be done aswell.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
spec:
source:
repoURL: https://github.com/argoproj/argocd-example-apps.git
targetRevision: HEAD
path: kustomize-guestbook
kustomize:
buildOptions: --enable-helm