Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 1.86 KB

File metadata and controls

52 lines (40 loc) · 1.86 KB

Create Config Management Plugins Modifying Argo CD Manifests

This plugin will run kustomize build --enable-helm.

Installation

Examples are provided with plain Kubernetes manifests, Codefresh's Helm chart, the community Helm chart, and kustomize.

Basic Instructions

Create a configmap with the CMP configuration

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

Modify Argo CD to add a sidecar

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.

Alternative Methods for enabling helm with Kustomize build options.

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