From baf210b4a3a3f6391a2669db03436ccf6dc8a089 Mon Sep 17 00:00:00 2001 From: Arnar Date: Tue, 7 May 2019 22:51:16 +0000 Subject: [PATCH] Adding option for resource customizations in ArgoCD (#65) --- charts/argo-cd/templates/argocd-cm.yaml | 4 ++++ charts/argo-cd/values.yaml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/charts/argo-cd/templates/argocd-cm.yaml b/charts/argo-cd/templates/argocd-cm.yaml index 7dfea6e6..2c8f2f36 100755 --- a/charts/argo-cd/templates/argocd-cm.yaml +++ b/charts/argo-cd/templates/argocd-cm.yaml @@ -28,6 +28,10 @@ data: oidc.config: | {{ toYaml .Values.config.oidcConfig | indent 4 }} {{- end }} +{{- if .Values.config.resourceCustomizations }} + resource.customizations: | +{{ toYaml .Values.config.resourceCustomizations | indent 4 }} +{{- end }} {{- if .Values.config.configManagementPlugins }} configManagementPlugins: | {{ toYaml .Values.config.configManagementPlugins | indent 4 }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index ab13e770..71f5c1a7 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -122,6 +122,14 @@ config: githubSecret: gitlabSecret: bitbucketSecret: + # resourceCustomizations can be used to create custom health checks for resources + # https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/health.md#way-1-define-a-custom-health-check-in-argocd-cm-configmap + resourceCustomizations: + # certmanager.k8s.io/Certificate: + # health.lua: | + # hs = {} + # ... + # return hs configManagementPlugins: # - name: pluginName # init: # Optional command to initialize application source directory