mirror of
https://github.com/minio/minio.git
synced 2025-03-31 17:53:43 -04:00
helm: add extra volumes and extra volume mounts option for job resources (#15590)
* add a new line to the end of the credentials file when creating a user * add extra volumes and mounts option into helm chart * add extra volumes and extra volume mounts option for job resources
This commit is contained in:
parent
cd18599e7b
commit
92a0a59de2
@ -65,6 +65,9 @@ spec:
|
|||||||
- key: {{ .Values.tls.publicCrt }}
|
- key: {{ .Values.tls.publicCrt }}
|
||||||
path: CAs/public.crt
|
path: CAs/public.crt
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.makeBucketJob.extraVolumes }}
|
||||||
|
{{- toYaml .Values.makeBucketJob.extraVolumes | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: minio-mc
|
- name: minio-mc
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||||
@ -87,6 +90,9 @@ spec:
|
|||||||
- name: cert-secret-volume-mc
|
- name: cert-secret-volume-mc
|
||||||
mountPath: {{ .Values.configPathmc }}certs
|
mountPath: {{ .Values.configPathmc }}certs
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.makeBucketJob.extraVolumeMounts }}
|
||||||
|
{{- toYaml .Values.makeBucketJob.extraVolumeMounts | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.makeBucketJob.resources | indent 10 }}
|
{{ toYaml .Values.makeBucketJob.resources | indent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -65,6 +65,9 @@ spec:
|
|||||||
- key: {{ .Values.tls.publicCrt }}
|
- key: {{ .Values.tls.publicCrt }}
|
||||||
path: CAs/public.crt
|
path: CAs/public.crt
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.makePolicyJob.extraVolumes }}
|
||||||
|
{{- toYaml .Values.makePolicyJob.extraVolumes | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: minio-mc
|
- name: minio-mc
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||||
@ -87,6 +90,9 @@ spec:
|
|||||||
- name: cert-secret-volume-mc
|
- name: cert-secret-volume-mc
|
||||||
mountPath: {{ .Values.configPathmc }}certs
|
mountPath: {{ .Values.configPathmc }}certs
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.makePolicyJob.extraVolumeMounts }}
|
||||||
|
{{- toYaml .Values.makePolicyJob.extraVolumeMounts | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.makePolicyJob.resources | indent 10 }}
|
{{ toYaml .Values.makePolicyJob.resources | indent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -75,6 +75,9 @@ spec:
|
|||||||
- key: {{ .Values.tls.publicCrt }}
|
- key: {{ .Values.tls.publicCrt }}
|
||||||
path: CAs/public.crt
|
path: CAs/public.crt
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.makeUserJob.extraVolumes }}
|
||||||
|
{{- toYaml .Values.makeUserJob.extraVolumes | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: minio-mc
|
- name: minio-mc
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||||
@ -97,6 +100,9 @@ spec:
|
|||||||
- name: cert-secret-volume-mc
|
- name: cert-secret-volume-mc
|
||||||
mountPath: {{ .Values.configPathmc }}certs
|
mountPath: {{ .Values.configPathmc }}certs
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{- if .Values.makeUserJob.extraVolumeMounts }}
|
||||||
|
{{- toYaml .Values.makeUserJob.extraVolumeMounts | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.makeUserJob.resources | indent 10 }}
|
{{ toYaml .Values.makeUserJob.resources | indent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -316,6 +316,8 @@ makePolicyJob:
|
|||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
extraVolumes: []
|
||||||
|
extraVolumeMounts: []
|
||||||
# Command to run after the main command on exit
|
# Command to run after the main command on exit
|
||||||
exitCommand: ""
|
exitCommand: ""
|
||||||
|
|
||||||
@ -352,6 +354,8 @@ makeUserJob:
|
|||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
extraVolumes: []
|
||||||
|
extraVolumeMounts: []
|
||||||
# Command to run after the main command on exit
|
# Command to run after the main command on exit
|
||||||
exitCommand: ""
|
exitCommand: ""
|
||||||
|
|
||||||
@ -394,6 +398,8 @@ makeBucketJob:
|
|||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
tolerations: []
|
tolerations: []
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
extraVolumes: []
|
||||||
|
extraVolumeMounts: []
|
||||||
# Command to run after the main command on exit
|
# Command to run after the main command on exit
|
||||||
exitCommand: ""
|
exitCommand: ""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user