Merge "Revert "Helm-Toolkit: Use image template for keystone and db management jobs""
This commit is contained in:
commit
3f6673919f
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user