mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-04 22:11:24 -03:00
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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user