From 6e08a5ee50e07b9e772fd4683b68324e875c9649 Mon Sep 17 00:00:00 2001 From: Gustav Paul Date: Fri, 20 Sep 2019 15:50:19 -0700 Subject: [PATCH] argo-cd: allow anonymous access (#117) --- charts/argo-cd/Chart.yaml | 2 +- charts/argo-cd/templates/argocd-cm.yaml | 3 +++ charts/argo-cd/values.yaml | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index d70d6d70..fc0e6bff 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v1 appVersion: "1.2.0" description: A Helm chart for Argo-CD name: argo-cd -version: 0.5.1 +version: 0.5.2 diff --git a/charts/argo-cd/templates/argocd-cm.yaml b/charts/argo-cd/templates/argocd-cm.yaml index 9dd30561..572da643 100644 --- a/charts/argo-cd/templates/argocd-cm.yaml +++ b/charts/argo-cd/templates/argocd-cm.yaml @@ -9,6 +9,9 @@ metadata: app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/part-of: argocd data: +{{- if .Values.config.enableAnonymousAccess }} + users.anonymous.enabled: {{ .Values.config.enableAnonymousAccess }} +{{- end }} {{- if .Values.config.helmRepositories }} helm.repositories: | {{ toYaml .Values.config.helmRepositories | indent 4 }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index 7801208a..fcac647e 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -77,6 +77,7 @@ clusterAdminAccess: config: createSecret: true + enableAnonymousAccess: false helmRepositories: # - name: privateRepo # url: http://chartmuseum.privatecloud.com