From 45fa0e02230a8ac71dd0911041dde13338eeef44 Mon Sep 17 00:00:00 2001 From: aniketgohelimp <123355145+aniketgohelimp@users.noreply.github.com> Date: Mon, 3 Jul 2023 17:04:37 +0530 Subject: [PATCH] Fix/polymorphic chart (#40) --- charts/polymorphic-app/Chart.yaml | 2 +- charts/polymorphic-app/templates/service.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/polymorphic-app/Chart.yaml b/charts/polymorphic-app/Chart.yaml index 4a21f2c..d0c1854 100644 --- a/charts/polymorphic-app/Chart.yaml +++ b/charts/polymorphic-app/Chart.yaml @@ -4,5 +4,5 @@ description: A Helm chart for deploying any custom applications, specifically po maintainers: - name: improwised type: application -version: 1.2.1 +version: 1.2.2 appVersion: 1.0.0 diff --git a/charts/polymorphic-app/templates/service.yaml b/charts/polymorphic-app/templates/service.yaml index 5653b9a..2e59e19 100644 --- a/charts/polymorphic-app/templates/service.yaml +++ b/charts/polymorphic-app/templates/service.yaml @@ -47,11 +47,11 @@ spec: {{- end }} {{- end }} terminationGracePeriodSeconds: {{ .terminationGracePeriodSeconds | default $.Values.serviceTemplate.terminationGracePeriodSeconds }} - {{- if or ($.Values.serviceTemplate.initContainer) (.initContainer) }} - {{- with .initContainer | default $.Values.serviceTemplate.initContainer }} + {{- if or ($.Values.serviceTemplate.initContainers) (.initContainers) }} + {{- with .initContainers | default $.Values.serviceTemplate.initContainers }} initContainers: - {{ toYaml . | indent 8 }} - {{- end }} +{{ toYaml . | indent 8 }} + {{- end }} {{- end }} containers: - name: "{{ $.Release.Name }}-{{ .name | default $.Values.serviceTemplate.name }}"