mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
fix: helm templating syntax in post-job (#17600)
This commit is contained in:
parent
abb1f22057
commit
cb1ec0a0d9
@ -85,27 +85,27 @@ spec:
|
|||||||
{{- if .Values.serviceAccount.create }}
|
{{- if .Values.serviceAccount.create }}
|
||||||
serviceAccountName: {{ .Values.serviceAccount.name }}
|
serviceAccountName: {{ .Values.serviceAccount.name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{ { - if .Values.policies } }
|
{{ - if .Values.policies }}
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: minio-make-policy
|
- name: minio-make-policy
|
||||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||||
{ { - if .Values.makePolicyJob.securityContext.enabled } }
|
{{ - if .Values.makePolicyJob.securityContext.enabled }}
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: { { .Values.makePolicyJob.securityContext.runAsUser } }
|
runAsUser: {{ .Values.makePolicyJob.securityContext.runAsUser }}
|
||||||
runAsGroup: { { .Values.makePolicyJob.securityContext.runAsGroup } }
|
runAsGroup: {{ .Values.makePolicyJob.securityContext.runAsGroup }}
|
||||||
{ { - end } }
|
{{ - end }}
|
||||||
imagePullPolicy: { { .Values.mcImage.pullPolicy } }
|
imagePullPolicy: {{ .Values.mcImage.pullPolicy }}
|
||||||
{ { - if .Values.makePolicyJob.exitCommand } }
|
{{ - if .Values.makePolicyJob.exitCommand }}
|
||||||
command: [ "/bin/sh", "-c" ]
|
command: [ "/bin/sh", "-c" ]
|
||||||
args: [ "/bin/sh /config/add-policy; EV=$?; {{ .Values.makePolicyJob.exitCommand }} && exit $EV" ]
|
args: [ "/bin/sh /config/add-policy; EV=$?; {{ .Values.makePolicyJob.exitCommand }} && exit $EV" ]
|
||||||
{ { - else } }
|
{{ - else }}
|
||||||
command: [ "/bin/sh", "/config/add-policy" ]
|
command: [ "/bin/sh", "/config/add-policy" ]
|
||||||
{ { - end } }
|
{{ - end }}
|
||||||
env:
|
env:
|
||||||
- name: MINIO_ENDPOINT
|
- name: MINIO_ENDPOINT
|
||||||
value: { { template "minio.fullname" . } }
|
value: {{ template "minio.fullname" . }}
|
||||||
- name: MINIO_PORT
|
- name: MINIO_PORT
|
||||||
value: { { .Values.service.port | quote } }
|
value: {{ .Values.service.port | quote }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: etc-path
|
- name: etc-path
|
||||||
mountPath: /etc/minio/mc
|
mountPath: /etc/minio/mc
|
||||||
@ -113,12 +113,12 @@ spec:
|
|||||||
mountPath: /tmp
|
mountPath: /tmp
|
||||||
- name: minio-configuration
|
- name: minio-configuration
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
{ { - if .Values.tls.enabled } }
|
{{ - if .Values.tls.enabled }}
|
||||||
- name: cert-secret-volume-mc
|
- name: cert-secret-volume-mc
|
||||||
mountPath: { { .Values.configPathmc } }certs
|
mountPath: {{ .Values.configPathmc }}certs
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources: { { - toYaml .Values.makePolicyJob.resources | nindent 12 } }
|
resources: {{ - toYaml .Values.makePolicyJob.resources | nindent 12 }}
|
||||||
{ { - end } }
|
{{ - end }}
|
||||||
containers:
|
containers:
|
||||||
{{- if .Values.buckets }}
|
{{- if .Values.buckets }}
|
||||||
- name: minio-make-bucket
|
- name: minio-make-bucket
|
||||||
|
Loading…
x
Reference in New Issue
Block a user