From fa6539563ab528b1792a64a22ca9b8f52312dcc5 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Thu, 19 Jan 2023 18:35:48 +0200 Subject: [PATCH] fix standalone job spec --- library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl b/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl index 2c0e197944..16e2162ffd 100644 --- a/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl +++ b/library/common/1.0.0/templates/spawner/_jobAndCronJob.tpl @@ -24,7 +24,9 @@ {{- end -}} {{- end -}} - {{/* Add the .Values as the main container */}} + {{/* Add the .Values as the main container and as pod */}} + {{/* This needs some redesign tbh */}} + {{- $_ := set $jobValues "podSpec" .Values -}} {{- $_ := set $jobValues.podSpec "containers" dict -}} {{- $_ := set $jobValues.podSpec.containers "main" .Values -}} {{- $_ := set $jobValues.podSpec.containers.main "enabled" "true" -}}