From 44250f1a52bef104a098d4fba571f1688291ba7a Mon Sep 17 00:00:00 2001 From: Han Cen Date: Sat, 24 Dec 2022 04:32:18 +0800 Subject: [PATCH] helm: disallow empty containers in post job template (#16281) --- helm/minio/templates/post-job.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helm/minio/templates/post-job.yaml b/helm/minio/templates/post-job.yaml index a75ff57fc..9c6da20fd 100644 --- a/helm/minio/templates/post-job.yaml +++ b/helm/minio/templates/post-job.yaml @@ -1,3 +1,4 @@ +{{- if or .Values.buckets .Values.users .Values.policies .Values.customCommands .Values.svcaccts }} apiVersion: batch/v1 kind: Job metadata: @@ -229,3 +230,4 @@ spec: resources: {{- toYaml .Values.makeServiceAccountJob.resources | nindent 12 }} {{- end }} +{{- end }}