fix: use correct reference to serviceAccount in _helpers.tpl (#21795)

fix #21794
Signed-off-by: Gazal K <mohamed.gazal@target.com.au>
This commit is contained in:
Gazal
2020-04-06 08:21:48 -07:00
committed by GitHub
parent 531f2ce727
commit 5cde084a90
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: Scales worker nodes within autoscaling groups.
icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png
name: cluster-autoscaler
version: 7.2.1
version: 7.2.2
appVersion: 1.17.1
home: https://github.com/kubernetes/autoscaler
sources:
@@ -76,9 +76,9 @@ Return the appropriate apiVersion for podsecuritypolicy.
Return the service account name used by the pod.
*/}}
{{- define "cluster-autoscaler.serviceAccountName" -}}
{{- if .Values.serviceAccount.create -}}
{{ default (include "cluster-autoscaler.fullname" .) .Values.serviceAccount.name }}
{{- if .Values.rbac.serviceAccount.create -}}
{{ default (include "cluster-autoscaler.fullname" .) .Values.rbac.serviceAccount.name }}
{{- else -}}
{{ default "default" .Values.serviceAccount.name }}
{{ default "default" .Values.rbac.serviceAccount.name }}
{{- end -}}
{{- end -}}