Helm: Add extraVolumes and extraVolumeMounts to the customCommandJob section (#19988)

added extraVolumes and extraVolumeMounts to the customCommandJob section
This commit is contained in:
Harrison Brown 2024-10-10 08:48:16 -07:00 committed by GitHub
parent e029f8a9d7
commit 87804624fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -82,6 +82,9 @@ spec:
- key: {{ .Values.tls.publicCrt }}
path: CAs/public.crt
{{- end }}
{{- if .Values.customCommandJob.extraVolumes }}
{{- toYaml .Values.customCommandJob.extraVolumes | nindent 8 }}
{{- end }}
{{- if .Values.serviceAccount.create }}
serviceAccountName: {{ .Values.serviceAccount.name }}
{{- end }}
@ -217,6 +220,9 @@ spec:
- name: cert-secret-volume-mc
mountPath: {{ .Values.configPathmc }}certs
{{- end }}
{{- if .Values.customCommandJob.extraVolumeMounts }}
{{- toYaml .Values.customCommandJob.extraVolumeMounts | nindent 12 }}
{{- end }}
resources: {{- toYaml .Values.customCommandJob.resources | nindent 12 }}
{{- end }}
{{- if .Values.svcaccts }}

View File

@ -476,6 +476,16 @@ customCommandJob:
resources:
requests:
memory: 128Mi
## Additional volumes to add to the post-job.
extraVolumes: []
# - name: extra-policies
# configMap:
# name: my-extra-policies-cm
## Additional volumeMounts to add to the custom commands container when
## running the post-job.
extraVolumeMounts: []
# - name: extra-policies
# mountPath: /mnt/extras/
# Command to run after the main command on exit
exitCommand: ""