feat(argo-workflows): Add parameter to enable or disable server and controller roles (#1166)

* optional role

Signed-off-by: Carl Raiden Worley <carl.worley@10gen.com>

* match existing setting

Signed-off-by: Carl Raiden Worley <carl.worley@10gen.com>

* fix lint

Signed-off-by: Carl Raiden Worley <carl.worley@10gen.com>
This commit is contained in:
Raiden Worley 2022-03-12 12:13:42 -05:00 committed by GitHub
parent ec6cd35fed
commit a647fbe123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 4 deletions

View file

@ -1,4 +1,4 @@
{{- if .Values.server.enabled }}
{{- if and .Values.server.enabled .Values.server.rbac.create}}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.singleNamespace }}
kind: Role

View file

@ -1,4 +1,4 @@
{{- if and .Values.server.enabled .Values.server.serviceAccount.create -}}
{{- if and .Values.server.enabled .Values.server.serviceAccount.create .Values.server.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
{{- if .Values.singleNamespace }}
kind: RoleBinding