diff --git a/chart/templates/rbac.yaml b/chart/templates/rbac.yaml index e533ed68..1729779e 100644 --- a/chart/templates/rbac.yaml +++ b/chart/templates/rbac.yaml @@ -150,6 +150,17 @@ rules: - apiGroups: [''] resources: ['configmaps', 'secrets'] verbs: ['*'] + {{- if .Values.serviceAccount.rbac.clusterRole}} + - apiGroups: [''] + resources: ['namespaces'] + verbs: + - create + - patch + - get + - list + - update + - watch + {{- end }} - apiGroups: - 'configs.flanksource.com' - 'canaries.flanksource.com'