summaryrefslogtreecommitdiff
path: root/astroshop-platform/argocd-helmchart/templates/argocd-application-controller/clusterrole.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'astroshop-platform/argocd-helmchart/templates/argocd-application-controller/clusterrole.yaml')
-rw-r--r--astroshop-platform/argocd-helmchart/templates/argocd-application-controller/clusterrole.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/astroshop-platform/argocd-helmchart/templates/argocd-application-controller/clusterrole.yaml b/astroshop-platform/argocd-helmchart/templates/argocd-application-controller/clusterrole.yaml
new file mode 100644
index 0000000..615b56f
--- /dev/null
+++ b/astroshop-platform/argocd-helmchart/templates/argocd-application-controller/clusterrole.yaml
@@ -0,0 +1,23 @@
+{{- if .Values.createClusterRoles }}
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: {{ include "argo-cd.controller.fullname" . }}
+ labels:
+ {{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
+rules:
+ {{- if .Values.controller.clusterRoleRules.enabled }}
+ {{- toYaml .Values.controller.clusterRoleRules.rules | nindent 2 }}
+ {{- else }}
+ - apiGroups:
+ - '*'
+ resources:
+ - '*'
+ verbs:
+ - '*'
+ - nonResourceURLs:
+ - '*'
+ verbs:
+ - '*'
+ {{- end }}
+{{- end }}