diff --git a/helm-toolkit/templates/manifests/_job-bootstrap.yaml b/helm-toolkit/templates/manifests/_job-bootstrap.yaml index 026dbe9ad..f9b6453d5 100644 --- a/helm-toolkit/templates/manifests/_job-bootstrap.yaml +++ b/helm-toolkit/templates/manifests/_job-bootstrap.yaml @@ -54,7 +54,8 @@ spec: {{ tuple $envAll "bootstrap" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} containers: - name: bootstrap -{{ tuple $envAll "bootstrap" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.bootstrap }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.bootstrap | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} {{- if eq $openrc "true" }} env: diff --git a/helm-toolkit/templates/manifests/_job-db-drop-mysql.yaml.tpl b/helm-toolkit/templates/manifests/_job-db-drop-mysql.yaml.tpl index cc846195b..43cae950b 100644 --- a/helm-toolkit/templates/manifests/_job-db-drop-mysql.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-db-drop-mysql.yaml.tpl @@ -61,7 +61,8 @@ spec: {{- range $key1, $dbToDrop := $dbsToDrop }} {{ $dbToDropType := default "oslo" $dbToDrop.inputType }} - name: {{ printf "%s-%s-%d" $serviceNamePretty "db-drop" $key1 | quote }} -{{ tuple $envAll "db_drop" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.db_drop }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.db_drop | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} env: - name: ROOT_DB_CONNECTION diff --git a/helm-toolkit/templates/manifests/_job-db-init-mysql.yaml.tpl b/helm-toolkit/templates/manifests/_job-db-init-mysql.yaml.tpl index b17f57c61..1656729cf 100644 --- a/helm-toolkit/templates/manifests/_job-db-init-mysql.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-db-init-mysql.yaml.tpl @@ -58,7 +58,8 @@ spec: {{- range $key1, $dbToInit := $dbsToInit }} {{ $dbToInitType := default "oslo" $dbToInit.inputType }} - name: {{ printf "%s-%s-%d" $serviceNamePretty "db-init" $key1 | quote }} -{{ tuple $envAll "db_init" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.db_init }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.db_init | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} env: - name: ROOT_DB_CONNECTION diff --git a/helm-toolkit/templates/manifests/_job-db-sync.yaml.tpl b/helm-toolkit/templates/manifests/_job-db-sync.yaml.tpl index 1ccd25b13..9ce6aafd3 100644 --- a/helm-toolkit/templates/manifests/_job-db-sync.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-db-sync.yaml.tpl @@ -53,7 +53,8 @@ spec: {{ tuple $envAll "db_sync" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} containers: - name: {{ printf "%s-%s" $serviceNamePretty "db-sync" | quote }} -{{ tuple $envAll $dbToSync.image | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $dbToSync.image | quote }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy | quote }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.db_sync | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} {{- if $podEnvVars }} env: diff --git a/helm-toolkit/templates/manifests/_job-ks-endpoints.yaml.tpl b/helm-toolkit/templates/manifests/_job-ks-endpoints.yaml.tpl index 1a912b869..f07cb630b 100644 --- a/helm-toolkit/templates/manifests/_job-ks-endpoints.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-ks-endpoints.yaml.tpl @@ -50,7 +50,8 @@ spec: {{- range $key1, $osServiceType := $serviceTypes }} {{- range $key2, $osServiceEndPoint := tuple "admin" "internal" "public" }} - name: {{ printf "%s-%s-%s" $osServiceType "ks-endpoints" $osServiceEndPoint | quote }} -{{ tuple $envAll "ks_endpoints" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.ks_endpoints }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.ks_endpoints | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} command: - /tmp/ks-endpoints.sh diff --git a/helm-toolkit/templates/manifests/_job-ks-service.yaml.tpl b/helm-toolkit/templates/manifests/_job-ks-service.yaml.tpl index 8d3bc46d9..628b24cac 100644 --- a/helm-toolkit/templates/manifests/_job-ks-service.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-ks-service.yaml.tpl @@ -49,7 +49,8 @@ spec: containers: {{- range $key1, $osServiceType := $serviceTypes }} - name: {{ printf "%s-%s" $osServiceType "ks-service-registration" | quote }} -{{ tuple $envAll "ks_service" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.ks_service }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.ks_service | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} command: - /tmp/ks-service.sh diff --git a/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl b/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl index 4192afcf0..1a79094cc 100644 --- a/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-ks-user.yaml.tpl @@ -48,7 +48,8 @@ spec: {{ tuple $envAll "ks_user" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} containers: - name: ks-user -{{ tuple $envAll "ks_user" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.ks_user }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.ks_user | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} command: - /tmp/ks-user.sh diff --git a/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl b/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl index 0bde85cf3..53365289a 100644 --- a/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl +++ b/helm-toolkit/templates/manifests/_job-rabbit-init.yaml.tpl @@ -43,7 +43,8 @@ spec: {{ tuple $envAll "rabbit_init" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} containers: - name: rabbit-init -{{ tuple $envAll "rabbit_init" | include "helm-toolkit.snippets.image" | indent 10 }} + image: {{ $envAll.Values.images.tags.rabbit_init | quote }} + imagePullPolicy: {{ $envAll.Values.images.pull_policy | quote }} {{ tuple $envAll $envAll.Values.pod.resources.jobs.rabbit_init | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }} command: - /tmp/rabbit-init.sh