diff --git a/chart/templates/rbac.yaml b/chart/templates/rbac.yaml index 51cf640..b7b1232 100644 --- a/chart/templates/rbac.yaml +++ b/chart/templates/rbac.yaml @@ -1,7 +1,9 @@ +{{- if .Values.serviceAccount.create -}} apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "py-kube-downscaler.serviceAccountName" . }} +{{- end }} --- {{- if .Values.constrainedDownscaler }} {{- if not .Values.constrainedNamespaces }}