github.com/argoproj/argo-cd@v1.8.7/util/helm/testdata/minio/templates/post-install-create-bucket-job.yaml (about) 1 {{- if .Values.defaultBucket.enabled }} 2 apiVersion: batch/v1 3 kind: Job 4 metadata: 5 name: {{ template "minio.fullname" . }}-make-bucket-job 6 labels: 7 app: {{ template "minio.name" . }} 8 chart: {{ template "minio.chart" . }} 9 release: {{ .Release.Name }} 10 heritage: {{ .Release.Service }} 11 annotations: 12 "helm.sh/hook": post-install,post-upgrade 13 "helm.sh/hook-delete-policy": hook-succeeded 14 spec: 15 template: 16 metadata: 17 labels: 18 app: {{ template "minio.name" . }} 19 release: {{ .Release.Name }} 20 spec: 21 restartPolicy: OnFailure 22 {{- if .Values.nodeSelector }} 23 nodeSelector: 24 {{ toYaml .Values.nodeSelector | indent 8 }} 25 {{- end }} 26 volumes: 27 - name: minio-configuration 28 projected: 29 sources: 30 - configMap: 31 name: {{ template "minio.fullname" . }} 32 - secret: 33 name: {{ template "minio.fullname" . }} 34 containers: 35 - name: minio-mc 36 image: "{{ .Values.mcImage.repository }}:{{ .Values.mcImage.tag }}" 37 imagePullPolicy: {{ .Values.mcImage.pullPolicy }} 38 command: ["/bin/sh", "/config/initialize"] 39 env: 40 - name: MINIO_ENDPOINT 41 value: {{ template "minio.fullname" . }} 42 - name: MINIO_PORT 43 value: {{ .Values.service.port | quote }} 44 volumeMounts: 45 - name: minio-configuration 46 mountPath: /config 47 {{- end }}