argocd-helm/charts/argo-cd/templates/argocd-repo-server/clusterrole.yaml
Petr Drastil c0b7a7e074
chore(argo-cd): Disable argocd-repo-server cluster role by default (#2498)
Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
2024-02-13 16:26:29 +01:00

23 lines
608 B
YAML

{{- if and .Values.createClusterRoles .Values.repoServer.clusterRoleRules.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "argo-cd.repoServer.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.repoServer.name "name" .Values.repoServer.name) | nindent 4 }}
rules:
{{- with .Values.repoServer.clusterRoleRules.rules }}
{{- toYaml . | nindent 2 }}
{{- else }}
- apiGroups:
- '*'
resources:
- '*'
verbs:
- '*'
- nonResourceURLs:
- '*'
verbs:
- '*'
{{- end }}
{{- end }}