fix standalone job spec

This commit is contained in:
Stavros kois
2023-01-19 18:35:48 +02:00
parent 3c0d6fa489
commit fa6539563a

View File

@@ -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" -}}