argocd-helm/charts/argo-cd/templates/argocd-configs/argocd-rbac-cm.yaml
Petr Drastil c8f7efb68f
feat(argo-cd): Move argocd-cm and argocd-rbac-cm to config section (#1528)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2022-10-25 19:05:38 +02:00

18 lines
639 B
YAML

{{- if (coalesce .Values.server.rbacConfigCreate .Values.configs.rbac.create) }}
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 (coalesce .Values.server.rbacConfigAnnotations .Values.configs.rbac.annotations) }}
annotations:
{{- range $key, $value := . }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- with (coalesce .Values.server.rbacConfig (omit .Values.configs.rbac "create" "annotations")) }}
data:
{{- toYaml . | nindent 2 }}
{{- end }}
{{- end }}