fix(argo-cd): Create notifications clusterrole and clusterrolebinding when enabled (#2326)

* Create clusterrole for nitifications only when notifications enabled

Signed-off-by: Denis Kadyshev <metajiji@gmail.com>

* Create clusterrolebinding for nitifications only when notifications enbaled

Signed-off-by: Denis Kadyshev <metajiji@gmail.com>

* Bump version in Chart.yaml

Signed-off-by: Denis Kadyshev <metajiji@gmail.com>

* Update Chart.yaml

Signed-off-by: Denis Kadyshev <metajiji@gmail.com>

* Update Chart.yaml

Signed-off-by: Denis Kadyshev <metajiji@gmail.com>

---------

Signed-off-by: Denis Kadyshev <metajiji@gmail.com>
This commit is contained in:
Denis Kadyshev 2023-11-02 16:43:50 +07:00 committed by GitHub
parent 733d84a423
commit 4afebb25f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{{- if .Values.createClusterRoles }}
{{- if and .Values.notifications.enabled .Values.createClusterRoles }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:

View file

@ -1,4 +1,4 @@
{{- if .Values.createClusterRoles }}
{{- if and .Values.notifications.enabled .Values.createClusterRoles }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata: