diff --git a/library/common/templates/lib/workload/_deployementSpec.tpl b/library/common/templates/lib/workload/_deployementSpec.tpl index b9a15d6b..3682df8a 100644 --- a/library/common/templates/lib/workload/_deployementSpec.tpl +++ b/library/common/templates/lib/workload/_deployementSpec.tpl @@ -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 }}