From cc17e4b2b022b4e564eeb34616154509cb21cf1d Mon Sep 17 00:00:00 2001 From: tomassatka Date: Mon, 22 Nov 2021 23:29:42 +0100 Subject: [PATCH] parametrize initContainers image --- helm/templates/job.yaml | 4 ++-- helm/values.yaml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/helm/templates/job.yaml b/helm/templates/job.yaml index 5e236eb..bbb946e 100644 --- a/helm/templates/job.yaml +++ b/helm/templates/job.yaml @@ -47,7 +47,7 @@ spec: initContainers: {{- if or (eq .Values.job.prefix "default") (eq .Values.job.prefix "attribute") (eq .Values.job.prefix "all") }} - name: attribute-service-ready - image: busybox + image: {{ .Values.initContainers.image.repository }} imagePullPolicy: IfNotPresent command: ["sh", "-c"] args: ["until nc -zv {{ .Values.attributeServiceConfig.data.host }} {{ .Values.attributeServiceConfig.data.port }}; \ @@ -56,7 +56,7 @@ spec: {{- end }} {{- if or (eq .Values.job.prefix "default") (eq .Values.job.prefix "entity") (eq .Values.job.prefix "all") }} - name: entity-service-ready - image: busybox + image: {{ .Values.initContainers.image.repository }} imagePullPolicy: IfNotPresent command: ["sh", "-c"] args: ["until nc -zv {{ .Values.entityServiceConfig.data.host }} {{ .Values.entityServiceConfig.data.port }}; \ diff --git a/helm/values.yaml b/helm/values.yaml index 679f837..6b5ba66 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -20,6 +20,10 @@ image: imagePullSecrets: [] +initContainers: + image: + repository: busybox + nodeLabels: {} javaOpts: "-Xms256M -Xmx768M"