mirror of
https://github.com/truenas/charts.git
synced 2024-04-21 15:21:45 +00:00
fix
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
{{- fail (printf "Invalid <restartPolicy> (%s). Valid options are Always, Never, OnFailure" $policy) -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if and (not $isJob) (mustHas $root.Values.controllers.main.type (list "Deployment" "ReplicaSet" "DaemonSet" "StatefulSet")) -}}
|
||||
{{- if and (not $isJob) (mustHas $root.Values.controllers.main.type (list "Deployment" "DaemonSet" "StatefulSet")) -}}
|
||||
{{- if and (ne $policy "Always") -}}
|
||||
{{- fail (printf "Invalid <restartPolicy (%s). Valid option for Deployment, StatefulSet, DaemonSet and ReplicaSet is Always" $policy) -}}
|
||||
{{- fail (printf "Invalid <restartPolicy (%s). Valid option for Deployment, StatefulSet, DaemonSet is Always" $policy) -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user