From 311718309c6885ff65ae2c77df7b92f236f69ed5 Mon Sep 17 00:00:00 2001 From: Kanagaraj M Date: Mon, 13 Sep 2021 21:42:20 +0530 Subject: [PATCH] fix ServiceAccount creation in helm chart (#13197) Fixed the variable name on the templated and added name. --- helm/minio/templates/serviceaccount.yaml | 2 +- helm/minio/values.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helm/minio/templates/serviceaccount.yaml b/helm/minio/templates/serviceaccount.yaml index 4380021d9..6a4bd94b3 100644 --- a/helm/minio/templates/serviceaccount.yaml +++ b/helm/minio/templates/serviceaccount.yaml @@ -2,6 +2,6 @@ apiVersion: v1 kind: ServiceAccount metadata: - name: {{ include "minio.serviceAccountName" . | quote }} + name: {{ .Values.serviceAccount.name | quote }} namespace: {{ .Release.Namespace | quote }} {{- end -}} diff --git a/helm/minio/values.yaml b/helm/minio/values.yaml index 1352ec2e1..3bab9920e 100644 --- a/helm/minio/values.yaml +++ b/helm/minio/values.yaml @@ -324,8 +324,8 @@ podDisruptionBudget: serviceAccount: create: true ## The name of the service account to use. If 'create' is 'true', a service account with that name - ## will be created. Otherwise, a name will be auto-generated. - name: + ## will be created. + name: "minio-sa" metrics: serviceMonitor: