apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "argo-cd.server.fullname" . }} namespace: {{ .Release.Namespace | quote }} labels: {{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }} rules: - apiGroups: - "" resources: - secrets - configmaps verbs: - create - get - list - watch - update - patch - delete - apiGroups: - argoproj.io resources: - applications {{- if .Values.applicationSet.enabled }} - applicationsets {{- end }} - appprojects {{- if .Values.server.extensions.enabled }} - argocdextensions {{- end }} verbs: - create - get - list - watch - update - delete - patch - apiGroups: - "" resources: - events verbs: - create - list {{- if eq (toString (index (coalesce .Values.server.config .Values.configs.cm) "exec.enabled")) "true" }} - apiGroups: - "" resources: - pods/exec verbs: - create {{- end }}