argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-rbac-cm.yaml

19 lines
495 B
YAML
Raw Normal View History

{{- if .Values.server.rbacConfigCreate }}
apiVersion: v1
2019-11-04 16:17:25 -08:00
kind: ConfigMap
metadata:
2019-11-04 16:17:25 -08:00
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 }}
2019-11-04 16:17:25 -08:00
data:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}