* Properly support "application in any namespace" for the argocd-server ClusterRole Signed-off-by: GuillaumeRemyCSI <30650458+GuillaumeRemyCSI@users.noreply.github.com> * Add changelog Signed-off-by: GuillaumeRemyCSI <30650458+GuillaumeRemyCSI@users.noreply.github.com> * notification controller can handle self-managed notification in any namespace Signed-off-by: GuillaumeRemyCSI <30650458+GuillaumeRemyCSI@users.noreply.github.com> * Bump argo-cd chart to v6.7.5 Signed-off-by: GuillaumeRemyCSI <30650458+GuillaumeRemyCSI@users.noreply.github.com> --------- Signed-off-by: GuillaumeRemyCSI <30650458+GuillaumeRemyCSI@users.noreply.github.com>
76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
{{- if .Values.createClusterRoles }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRole
|
|
metadata:
|
|
name: {{ include "argo-cd.server.fullname" . }}
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
|
rules:
|
|
- apiGroups:
|
|
- '*'
|
|
resources:
|
|
- '*'
|
|
verbs:
|
|
- delete
|
|
- get
|
|
- patch
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- events
|
|
verbs:
|
|
- list
|
|
{{- if (index .Values.configs.params "application.namespaces") }}
|
|
- create
|
|
{{- end }}
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods
|
|
- pods/log
|
|
verbs:
|
|
- get
|
|
{{- if eq (toString (index .Values.configs.cm "exec.enabled")) "true" }}
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- pods/exec
|
|
verbs:
|
|
- create
|
|
{{- end }}
|
|
- apiGroups:
|
|
- argoproj.io
|
|
resources:
|
|
- applications
|
|
- applicationsets
|
|
verbs:
|
|
- get
|
|
- list
|
|
- update
|
|
- watch
|
|
{{- if (index .Values.configs.params "application.namespaces") }}
|
|
- apiGroups:
|
|
- "argoproj.io"
|
|
resources:
|
|
- "applications"
|
|
verbs:
|
|
- create
|
|
- delete
|
|
- update
|
|
- patch
|
|
{{- end }}
|
|
- apiGroups:
|
|
- batch
|
|
resources:
|
|
{{/* supports triggering jobs from UI */}}
|
|
- jobs
|
|
verbs:
|
|
- create
|
|
- apiGroups:
|
|
- argoproj.io
|
|
resources:
|
|
- workflows
|
|
verbs:
|
|
{{/* supports triggering workflows from UI */}}
|
|
- create
|
|
{{- end }}
|