helm: disallow empty containers in post job template (#16281)

This commit is contained in:
Han Cen 2022-12-24 04:32:18 +08:00 committed by GitHub
parent f7560670d9
commit 44250f1a52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
{{- if or .Values.buckets .Values.users .Values.policies .Values.customCommands .Values.svcaccts }}
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
@ -229,3 +230,4 @@ spec:
resources: resources:
{{- toYaml .Values.makeServiceAccountJob.resources | nindent 12 }} {{- toYaml .Values.makeServiceAccountJob.resources | nindent 12 }}
{{- end }} {{- end }}
{{- end }}