diff --git a/chart/templates/serviceaccount.yaml b/chart/templates/serviceaccount.yaml index 3dddabc..f4d33aa 100644 --- a/chart/templates/serviceaccount.yaml +++ b/chart/templates/serviceaccount.yaml @@ -11,6 +11,7 @@ metadata: {{- end }} --- +{{- if .Values.serviceAccount.createRBAC }} apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: @@ -83,3 +84,4 @@ subjects: {{- end }} {{- end }} +{{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index bcc2c4d..b647e06 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -40,6 +40,8 @@ fullnameOverride: "" serviceAccount: # Specifies whether a service account should be created create: true + # Specifies whether RBAC should be created + createRBAC: true # Annotations to add to the service account annotations: {} # The name of the service account to use.