Make creation of aggregate roles optional

This commit is contained in:
Naseem 2019-05-13 16:11:23 -04:00
parent 90cb5278ab
commit b9c420134b
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,4 @@
{{- if .Values.createAggregateRoles }}
apiVersion: rbac.authorization.k8s.io/v1 apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
@ -70,3 +71,4 @@ rules:
- patch - patch
- update - update
- watch - watch
{{- end }}

View file

@ -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. # being deployed to. In RBAC clusters, that will almost certainly fail. See the NOTES: section of the readme for more info.
serviceAccount: "" serviceAccount: ""
createAggregateRoles: true
controller: controller:
# podAnnotations is an optional map of annotations to be applied to the controller Pods # podAnnotations is an optional map of annotations to be applied to the controller Pods
podAnnotations: {} podAnnotations: {}