From 018e82352c27e398e1d4f396f409f4904c63aa24 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Mon, 16 Sep 2019 20:11:19 -0400 Subject: [PATCH] Add ability to configure instanceLabelKey --- charts/argo-cd/README.md | 1 + charts/argo-cd/templates/argocd-cm.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/charts/argo-cd/README.md b/charts/argo-cd/README.md index 28f08c73..62171767 100644 --- a/charts/argo-cd/README.md +++ b/charts/argo-cd/README.md @@ -39,6 +39,7 @@ $ helm install --name my-release argo/argo-cd | config.repositories | string | `nil` | Configuration for remote Git repositories for Applications, see [values.yaml](./values.yaml) for format | | config.resourceCustomizations | string | `nil` | 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] | | config.url | string | `nil` | External URL for ArgoCD | +| config.instanceLabelKey | string | `nil` | Custom instance label key | | config.webhook.bitbucketSecret | string | `nil` | BitBucket incoming webhook secret | | config.webhook.githubSecret | string | `nil` | GitHub incoming webhook secret | | config.webhook.gitlabSecret | string | `nil` | GitLab incoming webhook secret | diff --git a/charts/argo-cd/templates/argocd-cm.yaml b/charts/argo-cd/templates/argocd-cm.yaml index 98467bb8..9dd30561 100755 --- a/charts/argo-cd/templates/argocd-cm.yaml +++ b/charts/argo-cd/templates/argocd-cm.yaml @@ -24,6 +24,9 @@ data: {{- if .Values.config.url }} url: {{ .Values.config.url }} {{- end }} +{{- if .Values.config.instanceLabelKey }} + application.instanceLabelKey: {{ .Values.config.instanceLabelKey }} +{{- end }} {{- if .Values.config.oidcConfig }} oidc.config: | {{ toYaml .Values.config.oidcConfig | indent 4 }}