k8s/helm-charts/dashy/charts/common/templates/lib/util/_stopAll.tpl

17 lines
343 B
Smarty
Raw Normal View History

2023-11-16 19:42:02 +10:00
{{- define "tc.v1.common.lib.util.stopAll" -}}
{{- $rootCtx := . -}}
{{- $stop := "" -}}
{{- if $rootCtx.Values.global.stopAll -}}
{{- $stop = true -}}
{{- end -}}
{{- with $rootCtx.Values.global.ixChartContext -}}
{{- if .isStopped -}}
{{- $stop = true -}}
{{- end -}}
{{- end -}}
{{- $stop -}}
{{- end -}}