From b9c420134b8f14f4c96488e4955bb268818c4c94 Mon Sep 17 00:00:00 2001 From: Naseem Date: Mon, 13 May 2019 16:11:23 -0400 Subject: [PATCH] Make creation of aggregate roles optional --- charts/argo/templates/workflow-aggregate-roles.yaml | 2 ++ charts/argo/values.yaml | 2 ++ 2 files changed, 4 insertions(+) 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: {}