{{- /* The one-shot bootstrap containers from compose (oz-init, nrc-init, flowable-init, the *-init setup_configuration runs, the zaaktype seed and the NRC abonnement) become Jobs. All of them are idempotent, so ordering is not enforced with hooks: each waits for the ports it needs (waitFor) and Kubernetes retries the rest. A wiped database is re-seeded by `make k8s-reseed`. */ -}} {{- range $name, $w := .Values.workloads }} {{- if and (ne $w.enabled false) $w.job }} --- apiVersion: batch/v1 kind: Job metadata: name: {{ $name }} labels: {{- include "big.labels" (dict "root" $ "name" $name) | nindent 4 }} app.kubernetes.io/component: init spec: backoffLimit: 20 template: metadata: labels: {{- include "big.labels" (dict "root" $ "name" $name) | nindent 8 }} app.kubernetes.io/component: init spec: restartPolicy: OnFailure {{- include "big.podspec" (dict "root" $ "name" $name "w" $w) | nindent 6 }} {{- end }} {{- end }}