From 2d5d96508b87f53f0597086f17ea16e4b69b2c69 Mon Sep 17 00:00:00 2001 From: Jan <157487559+JTaeuber@users.noreply.github.com> Date: Tue, 22 Oct 2024 08:52:07 +0200 Subject: [PATCH] fix: serviceaccount creation (#104) --- chart/templates/rbac.yaml | 2 ++ 1 file changed, 2 insertions(+) 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 }}