diff --git a/helm/minio/templates/post-install-create-bucket-job.yaml b/helm/minio/templates/post-install-create-bucket-job.yaml index 3d5d0564a..643313d51 100644 --- a/helm/minio/templates/post-install-create-bucket-job.yaml +++ b/helm/minio/templates/post-install-create-bucket-job.yaml @@ -68,6 +68,9 @@ spec: {{- if .Values.makeBucketJob.extraVolumes }} {{- toYaml .Values.makeBucketJob.extraVolumes | nindent 8 }} {{- end }} +{{ if .Values.serviceAccount.create }} + serviceAccountName: {{ .Values.serviceAccount.name }} +{{- end }} containers: - name: minio-mc image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}" diff --git a/helm/minio/templates/post-install-create-policy-job.yaml b/helm/minio/templates/post-install-create-policy-job.yaml index 6ffe4cf90..288bf751a 100644 --- a/helm/minio/templates/post-install-create-policy-job.yaml +++ b/helm/minio/templates/post-install-create-policy-job.yaml @@ -68,6 +68,9 @@ spec: {{- if .Values.makePolicyJob.extraVolumes }} {{- toYaml .Values.makePolicyJob.extraVolumes | nindent 8 }} {{- end }} +{{ if .Values.serviceAccount.create }} + serviceAccountName: {{ .Values.serviceAccount.name }} +{{- end }} containers: - name: minio-mc image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}" diff --git a/helm/minio/templates/post-install-create-user-job.yaml b/helm/minio/templates/post-install-create-user-job.yaml index f471fec5f..8ccc6c000 100644 --- a/helm/minio/templates/post-install-create-user-job.yaml +++ b/helm/minio/templates/post-install-create-user-job.yaml @@ -78,6 +78,9 @@ spec: {{- if .Values.makeUserJob.extraVolumes }} {{- toYaml .Values.makeUserJob.extraVolumes | nindent 8 }} {{- end }} +{{ if .Values.serviceAccount.create }} + serviceAccountName: {{ .Values.serviceAccount.name }} +{{- end }} containers: - name: minio-mc image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"