* feat(argo-cd) Adding applicationSet.enable and notifications.enable to allow to disable them Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Fixing Chart version and redudant ifs Signed-off-by: Eric Durand eric_p_durand@yahoo.com Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Detail the change Signed-off-by: Eric Durand <eric_p_durand@yahoo.com> * Drop one more redundant if Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com> Co-authored-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
44 lines
827 B
YAML
44 lines
827 B
YAML
{{- if .Values.notifications.enabled }}
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: Role
|
|
metadata:
|
|
name: {{ template "argo-cd.notifications.fullname" . }}
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.notifications.name "name" .Values.notifications.name) | nindent 4 }}
|
|
rules:
|
|
- apiGroups:
|
|
- argoproj.io
|
|
resources:
|
|
- applications
|
|
- appprojects
|
|
verbs:
|
|
- get
|
|
- list
|
|
- watch
|
|
- update
|
|
- patch
|
|
- apiGroups:
|
|
- ""
|
|
resources:
|
|
- configmaps
|
|
- secrets
|
|
verbs:
|
|
- list
|
|
- watch
|
|
- apiGroups:
|
|
- ""
|
|
resourceNames:
|
|
- {{ template "argo-cd.notifications.fullname" . }}-cm
|
|
resources:
|
|
- configmaps
|
|
verbs:
|
|
- get
|
|
- apiGroups:
|
|
- ""
|
|
resourceNames:
|
|
- {{ template "argo-cd.notifications.fullname" . }}-secret
|
|
resources:
|
|
- secrets
|
|
verbs:
|
|
- get
|
|
{{- end }}
|