Update library/common/templates/lib/workload/_deployementSpec.tpl

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
Kjeld Schouten
2023-05-12 23:25:35 +02:00
committed by GitHub
parent c590fe37d2
commit 80dfbb0a02

View File

@@ -11,7 +11,7 @@ objectData:
{{- $objectData := .objectData -}}
{{- $rootCtx := .rootCtx -}}
{{- $strategy := $objectData.strategy | default "Recreate" }}
replicas: {{ if $rootCtx.global.stopAll }}0{{ else }}{{ $objectData.replicas | default 1 }}{{ end }}
replicas: {{ if $rootCtx.Values.global.stopAll }}0{{ else }}{{ $objectData.replicas | default 1 }}{{ end }}
revisionHistoryLimit: {{ $objectData.revisionHistoryLimit | default 3 }}
strategy:
type: {{ $strategy }}