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