diff --git a/charts/argo/templates/workflow-aggregate-roles.yaml b/charts/argo/templates/workflow-aggregate-roles.yaml index 19ff43f4..3898f3c7 100644 --- a/charts/argo/templates/workflow-aggregate-roles.yaml +++ b/charts/argo/templates/workflow-aggregate-roles.yaml @@ -1,3 +1,4 @@ +{{- if .Values.createAggregateRoles }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: @@ -70,3 +71,4 @@ rules: - patch - update - watch +{{- end }} diff --git a/charts/argo/values.yaml b/charts/argo/values.yaml index e9d1c7e9..c1097ade 100644 --- a/charts/argo/values.yaml +++ b/charts/argo/values.yaml @@ -12,6 +12,8 @@ init: # being deployed to. In RBAC clusters, that will almost certainly fail. See the NOTES: section of the readme for more info. serviceAccount: "" +createAggregateRoles: true + controller: # podAnnotations is an optional map of annotations to be applied to the controller Pods podAnnotations: {}