mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
parent
e37c4efc6e
commit
f6b48ed02a
@ -85,6 +85,40 @@ spec:
|
||||
{{- if .Values.serviceAccount.create }}
|
||||
serviceAccountName: {{ .Values.serviceAccount.name }}
|
||||
{{- end }}
|
||||
{ { - if .Values.policies } }
|
||||
initContainers:
|
||||
- name: minio-make-policy
|
||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||
{ { - if .Values.makePolicyJob.securityContext.enabled } }
|
||||
securityContext:
|
||||
runAsUser: { { .Values.makePolicyJob.securityContext.runAsUser } }
|
||||
runAsGroup: { { .Values.makePolicyJob.securityContext.runAsGroup } }
|
||||
{ { - end } }
|
||||
imagePullPolicy: { { .Values.mcImage.pullPolicy } }
|
||||
{ { - if .Values.makePolicyJob.exitCommand } }
|
||||
command: [ "/bin/sh", "-c" ]
|
||||
args: [ "/bin/sh /config/add-policy; EV=$?; {{ .Values.makePolicyJob.exitCommand }} && exit $EV" ]
|
||||
{ { - else } }
|
||||
command: [ "/bin/sh", "/config/add-policy" ]
|
||||
{ { - end } }
|
||||
env:
|
||||
- name: MINIO_ENDPOINT
|
||||
value: { { template "minio.fullname" . } }
|
||||
- name: MINIO_PORT
|
||||
value: { { .Values.service.port | quote } }
|
||||
volumeMounts:
|
||||
- name: etc-path
|
||||
mountPath: /etc/minio/mc
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
- name: minio-configuration
|
||||
mountPath: /config
|
||||
{ { - if .Values.tls.enabled } }
|
||||
- name: cert-secret-volume-mc
|
||||
mountPath: { { .Values.configPathmc } }certs
|
||||
{{- end }}
|
||||
resources: { { - toYaml .Values.makePolicyJob.resources | nindent 12 } }
|
||||
{ { - end } }
|
||||
containers:
|
||||
{{- if .Values.buckets }}
|
||||
- name: minio-make-bucket
|
||||
@ -152,39 +186,6 @@ spec:
|
||||
{{- end }}
|
||||
resources: {{- toYaml .Values.makeUserJob.resources | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.policies }}
|
||||
- name: minio-make-policy
|
||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||
{{- if .Values.makePolicyJob.securityContext.enabled }}
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.makePolicyJob.securityContext.runAsUser }}
|
||||
runAsGroup: {{ .Values.makePolicyJob.securityContext.runAsGroup }}
|
||||
{{- end }}
|
||||
imagePullPolicy: {{ .Values.mcImage.pullPolicy }}
|
||||
{{- if .Values.makePolicyJob.exitCommand }}
|
||||
command: [ "/bin/sh", "-c" ]
|
||||
args: [ "/bin/sh /config/add-policy; EV=$?; {{ .Values.makePolicyJob.exitCommand }} && exit $EV" ]
|
||||
{{- else }}
|
||||
command: [ "/bin/sh", "/config/add-policy" ]
|
||||
{{- end }}
|
||||
env:
|
||||
- name: MINIO_ENDPOINT
|
||||
value: {{ template "minio.fullname" . }}
|
||||
- name: MINIO_PORT
|
||||
value: {{ .Values.service.port | quote }}
|
||||
volumeMounts:
|
||||
- name: etc-path
|
||||
mountPath: /etc/minio/mc
|
||||
- name: tmp
|
||||
mountPath: /tmp
|
||||
- name: minio-configuration
|
||||
mountPath: /config
|
||||
{{- if .Values.tls.enabled }}
|
||||
- name: cert-secret-volume-mc
|
||||
mountPath: {{ .Values.configPathmc }}certs
|
||||
{{- end }}
|
||||
resources: {{- toYaml .Values.makePolicyJob.resources | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if .Values.customCommands }}
|
||||
- name: minio-custom-command
|
||||
image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
||||
|
Loading…
Reference in New Issue
Block a user