feat(argo-cd): conditionally create the rbac configmap (#569)

Signed-off-by: John Kost <jkost@bandwidth.com>
This commit is contained in:
John Kost 2021-02-09 12:32:28 -05:00 committed by GitHub
parent ba467c8a4b
commit ec68ef2080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.7.11 appVersion: 1.7.11
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes. description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd name: argo-cd
version: 2.12.0 version: 2.13.0
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords: keywords:

View file

@ -1,3 +1,4 @@
{{- if .Values.server.rbacConfigCreate }}
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
@ -18,4 +19,5 @@ metadata:
{{- if .Values.server.rbacConfig }} {{- if .Values.server.rbacConfig }}
data: data:
{{- toYaml .Values.server.rbacConfig | nindent 4 }} {{- toYaml .Values.server.rbacConfig | nindent 4 }}
{{- end }} {{- end }}
{{- end }}

View file

@ -595,6 +595,10 @@ server:
## Annotations to be added to ArgoCD rbac ConfigMap ## Annotations to be added to ArgoCD rbac ConfigMap
rbacConfigAnnotations: {} rbacConfigAnnotations: {}
# Boolean determining whether or not to create the configmap. If false, it is expected tthe configmap will be created
# by something else. ArgoCD will not work if there is no configMap created with the name above.
rbacConfigCreate: true
## Not well tested and not well supported on release v1.0.0. ## Not well tested and not well supported on release v1.0.0.
## Applications ## Applications
## reference: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/ ## reference: https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/