From 51eadf0b4e03b9f99d24b04fcc9016ca3634fabc Mon Sep 17 00:00:00 2001 From: Spicoud <113991629+sara-picoud@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:24:23 +0100 Subject: [PATCH] fix init container rendering valus (#1) --- bouyguestelecom/spin/templates/deployment.yaml | 8 ++++---- bouyguestelecom/spin/values.yaml | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/bouyguestelecom/spin/templates/deployment.yaml b/bouyguestelecom/spin/templates/deployment.yaml index 86aae3b..d7b459d 100644 --- a/bouyguestelecom/spin/templates/deployment.yaml +++ b/bouyguestelecom/spin/templates/deployment.yaml @@ -39,7 +39,7 @@ spec: {{- if .Values.deployment.extraInitContainers }} initContainers: {{- with .Values.deployment.extraInitContainers }} - {{- tpl . $ | nindent 8 }} + {{- toYaml . | nindent 8 }} {{- end }} {{- end }} containers: @@ -58,7 +58,7 @@ spec: {{- toYaml . | nindent 10 }} {{- end }} {{- with .Values.deployment.containerExtraSpecs }} - {{- tpl . $ | nindent 10 }} + {{- toYaml . | nindent 10 }} {{- end }} imagePullPolicy: {{ .Values.deployment.image.pullPolicy }} ports: @@ -69,7 +69,7 @@ spec: containerPort: {{ default .Values.service.httpAdminPort .Values.deployment.containerAdminPort }} {{- end }} {{- with .Values.deployment.containerExtraPorts }} - {{- tpl . $ | nindent 12 }} + {{- toYaml . | nindent 12 }} {{- end }} livenessProbe: {{- toYaml .Values.deployment.livenessProbe | nindent 12 }} @@ -77,7 +77,7 @@ spec: {{- toYaml .Values.deployment.readinessProbe | nindent 12 }} {{- with .Values.deployment.startupProbe }} startupProbe: - {{- tpl . $ | nindent 12 }} + {{- toYaml . | nindent 12 }} {{- end }} resources: {{- toYaml .Values.deployment.resources | nindent 12 }} diff --git a/bouyguestelecom/spin/values.yaml b/bouyguestelecom/spin/values.yaml index 36f3f05..1d2b73d 100644 --- a/bouyguestelecom/spin/values.yaml +++ b/bouyguestelecom/spin/values.yaml @@ -42,6 +42,10 @@ deployment: fsGroup: 1001 ## generic value # -- Add initContainers extraInitContainers: [] + # - name: init-container-1 + # image: your-image-1:tag + # - name: init-container-2 + # image: your-image-2:tag # -- Pod restart policy. One of `Always`, `OnFailure`, or `Never` restartPolicy: Always # -- Security context @@ -265,9 +269,3 @@ configFiles: {} # insert_your_application_configuration_here #logback.xml: |- # insert_your_logback_configuration_here - -# -- Log into github to generate tag image -github: - enabled: false - organization: "votre-organisation" - repository: "votre-repo" \ No newline at end of file