Helm entrypoint hooks

This PS adds helm entrypoint support into the common code, enabling
microservices that depend on them to gain helm entrypoint support.

Change-Id: I74c908f400fbfa2e8002860db6b8d2b6c670fe05
This commit is contained in:
Kevin Fox 2016-12-17 14:16:16 -08:00
parent a69de9d433
commit 9a60b14ce3
7 changed files with 17 additions and 0 deletions

View File

@ -25,6 +25,7 @@ spec:
# The init container overrides the listen address and port to ensure it does not conflict with haproxy and prevent
# other containers from directly accessing the service
pod.beta.kubernetes.io/init-containers: '[
{{- include "common_dependency_container_multi" . | indent 10 }}
{
"name": "update-config",
"image": {{ include "kolla_toolbox_image_full" . | quote }},

View File

@ -6,6 +6,9 @@ metadata:
name: "{{ .resourceName }}-create-db"
spec:
template:
{{- include "init_container_header" . | indent 4 }}
{{- include "common_dependency_container_single" . | indent 10 }}
{{- include "init_container_tail" . | indent 2 }}
spec:
nodeSelector:
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}

View File

@ -10,6 +10,9 @@ spec:
parallelism: 1
completions: 1
template:
{{- include "init_container_header" . | indent 4 }}
{{- include "common_dependency_container_single" . | indent 10 }}
{{- include "init_container_tail" . | indent 4 }}
spec:
nodeSelector:
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}

View File

@ -10,6 +10,9 @@ spec:
parallelism: 1
completions: 1
template:
{{- include "init_container_header" . | indent 4 }}
{{- include "common_dependency_container_single" . | indent 10 }}
{{- include "init_container_tail" . | indent 4 }}
spec:
nodeSelector:
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}

View File

@ -9,6 +9,9 @@ spec:
parallelism: 1
completions: 1
template:
{{- include "init_container_header" . | indent 4 }}
{{- include "common_dependency_container_single" . | indent 10 }}
{{- include "init_container_tail" . | indent 4 }}
spec:
nodeSelector:
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}

View File

@ -5,6 +5,9 @@ metadata:
name: "{{ .resourceName }}-manage-db"
spec:
template:
{{- include "init_container_header" . | indent 4 }}
{{- include "common_dependency_container_single" . | indent 10 }}
{{- include "init_container_tail" . | indent 4 }}
spec:
nodeSelector:
{{ .Values.selector_key }}: {{ .Values.selector_value | quote }}

View File

@ -11,6 +11,7 @@ spec:
type: {{ .serviceType }}
annotations:
pod.beta.kubernetes.io/init-containers: '[
{{- include "common_dependency_container_multi" . | indent 10 }}
{
"name": "initialize-config",
"image": {{ include "kolla_toolbox_image_full" . | quote }},