summaryrefslogtreecommitdiff
path: root/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-rbac-cm.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-rbac-cm.yaml')
-rw-r--r--astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-rbac-cm.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-rbac-cm.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-rbac-cm.yaml
new file mode 100644
index 0000000..ae48404
--- /dev/null
+++ b/astroshop-platform/argocd-helmchart/templates/argocd-configs/argocd-rbac-cm.yaml
@@ -0,0 +1,19 @@
+{{- if .Values.configs.rbac.create }}
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: argocd-rbac-cm
+ namespace: {{ include "argo-cd.namespace" . }}
+ labels:
+ {{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" "rbac-cm") | nindent 4 }}
+ {{- with .Values.configs.rbac.annotations }}
+ annotations:
+ {{- range $key, $value := . }}
+ {{ $key }}: {{ $value | quote }}
+ {{- end }}
+ {{- end }}
+{{- with (omit .Values.configs.rbac "create" "annotations") }}
+data:
+ {{- toYaml . | nindent 2 }}
+{{- end }}
+{{- end }}