rancher-charts/packages/epinio/minio/generated-changes/patch/templates/post-install-create-user-jo...

36 lines
1.3 KiB
Diff

--- charts-original/templates/post-install-create-user-job.yaml
+++ charts/templates/post-install-create-user-job.yaml
@@ -32,18 +32,17 @@
spec:
restartPolicy: OnFailure
{{- include "minio.imagePullSecrets" . | indent 6 }}
-{{- if .Values.nodeSelector }}
nodeSelector:
-{{ toYaml .Values.makeUserJob.nodeSelector | indent 8 }}
-{{- end }}
+ {{- include "linux-node-selector" . | nindent 8 }}
{{- with .Values.makeUserJob.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
-{{- with .Values.makeUserJob.tolerations }}
tolerations:
-{{ toYaml . | indent 8 }}
-{{- end }}
+ {{- include "linux-node-tolerations" . | nindent 8 }}
+ {{- with .Values.makeUserJob.tolerations }}
+ {{ toYaml . | indent 8 }}
+ {{- end }}
{{- if .Values.makeUserJob.securityContext.enabled }}
securityContext:
runAsUser: {{ .Values.makeUserJob.securityContext.runAsUser }}
@@ -77,7 +76,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 }}
command: ["/bin/sh", "/config/add-user"]
env: