{{- $envAll := . }} {{- $dependencies := .Values.dependencies.import_resources }} apiVersion: batch/v1 kind: Job metadata: name: region-import-resources spec: template: metadata: annotations: pod.beta.kubernetes.io/init-containers: '[ {{ tuple $envAll $dependencies | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }} ]' spec: restartPolicy: OnFailure containers: - name: region-import-resources image: {{ .Values.images.maas_region }} imagePullPolicy: {{ .Values.images.pull_policy }} command: - bash - /tmp/import-boot-resources.sh readinessProbe: exec: command: - bash - /tmp/job-readiness.sh initialDelaySeconds: 60 volumeMounts: - name: import-boot-resources mountPath: /tmp/import-boot-resources.sh subPath: import-boot-resources.sh - name: job-readiness mountPath: /tmp/job-readiness.sh subPath: job-readiness.sh - name: maas-dns-config mountPath: /etc/bind/named.conf.options subPath: named.conf.options volumes: - name: import-boot-resources configMap: name: maas-bin - name: job-readiness configMap: name: maas-bin - name: maas-dns-config configMap: name: maas-etc