mirror of https://git.rancher.io/charts
36 lines
1.4 KiB
Diff
36 lines
1.4 KiB
Diff
--- charts-original/templates/post-install-custom-command.yaml
|
|
+++ charts/templates/post-install-custom-command.yaml
|
|
@@ -31,18 +31,17 @@
|
|
spec:
|
|
restartPolicy: OnFailure
|
|
{{- include "minio.imagePullSecrets" . | indent 6 }}
|
|
-{{- if .Values.nodeSelector }}
|
|
nodeSelector:
|
|
-{{ toYaml .Values.customCommandJob.nodeSelector | indent 8 }}
|
|
-{{- end }}
|
|
+ {{- include "linux-node-selector" . | nindent 8 }}
|
|
{{- with .Values.customCommandJob.affinity }}
|
|
affinity:
|
|
{{ toYaml . | indent 8 }}
|
|
{{- end }}
|
|
-{{- with .Values.customCommandJob.tolerations }}
|
|
tolerations:
|
|
-{{ toYaml . | indent 8 }}
|
|
-{{- end }}
|
|
+ {{- include "linux-node-tolerations" . | nindent 8 }}
|
|
+ {{- with .Values.customCommandJob.tolerations }}
|
|
+ {{ toYaml . | indent 8 }}
|
|
+ {{- end }}
|
|
{{- if .Values.customCommandJob.securityContext.enabled }}
|
|
securityContext:
|
|
runAsUser: {{ .Values.customCommandJob.securityContext.runAsUser }}
|
|
@@ -67,7 +66,7 @@
|
|
{{ end }}
|
|
containers:
|
|
- name: minio-mc
|
|
- image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
|
+ image: "{{ default .Values.mcImage.registry (include "registry-url" .) }}{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}"
|
|
imagePullPolicy: {{ .Values.mcImage.pullPolicy }}
|
|
{{- if .Values.customCommandJob.exitCommand }}
|
|
command: ["/bin/sh", "-c"]
|