From 0a702b834d56e8ccb2f03035e5c9ad679f6f51cf Mon Sep 17 00:00:00 2001 From: Bernt Andreas Drange Date: Mon, 31 Oct 2022 14:21:43 +0200 Subject: [PATCH 1/2] Add support for multiline postinstall and postupgrade commands --- frontend/templates/services-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/templates/services-deployment.yaml b/frontend/templates/services-deployment.yaml index 8c2cb1df..ae876f7f 100644 --- a/frontend/templates/services-deployment.yaml +++ b/frontend/templates/services-deployment.yaml @@ -173,9 +173,9 @@ spec: args: - | {{- if $.Release.IsInstall }} - {{ $service.postinstall.command }} + {{- toYaml $service.postinstall.command | nindent 10 }} {{- end }} - {{ $service.postupgrade.command }} + {{- toYaml $service.postupgrade.command | nindent 10 }} volumeMounts: {{ if $service.mounts }} {{- range $index, $mountName := $service.mounts -}} From ac0d0de982e6cbc48af462d43b6cc7ff6be4e051 Mon Sep 17 00:00:00 2001 From: Bernt Andreas Drange Date: Thu, 3 Nov 2022 13:30:24 +0200 Subject: [PATCH 2/2] Remove toYaml from service.postinstall/postupgrade commands --- frontend/templates/services-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/templates/services-deployment.yaml b/frontend/templates/services-deployment.yaml index ae876f7f..3d112ef9 100644 --- a/frontend/templates/services-deployment.yaml +++ b/frontend/templates/services-deployment.yaml @@ -173,9 +173,9 @@ spec: args: - | {{- if $.Release.IsInstall }} - {{- toYaml $service.postinstall.command | nindent 10 }} + {{- $service.postinstall.command | nindent 10 }} {{- end }} - {{- toYaml $service.postupgrade.command | nindent 10 }} + {{- $service.postupgrade.command | nindent 10 }} volumeMounts: {{ if $service.mounts }} {{- range $index, $mountName := $service.mounts -}}