argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-rbac-cm.yaml
Petr Drastil 8ee317128d
Cleanup config files to keep them DRY (#1470)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-09-21 09:32:06 +02:00

18 lines
495 B
YAML

{{- if .Values.server.rbacConfigCreate }}
apiVersion: v1
kind: ConfigMap
metadata:
name: argocd-rbac-cm
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" "rbac-cm") | nindent 4 }}
{{- with .Values.server.rbacConfigAnnotations }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- with .Values.server.rbacConfig }}
data:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}