mirror of
https://github.com/truenas/charts.git
synced 2026-06-15 14:39:35 +08:00
force only one of the 2
This commit is contained in:
@@ -113,11 +113,11 @@ objectData: The object data to be used to render the Pod.
|
||||
{{- $portToCheck = (tpl $portToCheck $rootCtx) | float64 -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if or (not $portRange.low) (lt ($portToCheck | float64) $portRange.low | float64) -}}
|
||||
{{- if or (not $portRange.low) (lt $portToCheck ($portRange.low | float64)) -}}
|
||||
{{- $_ := set $portRange "low" $portToCheck -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if or (not $portRange.high) (gt ($portToCheck | float64) ($portRange.high | float64)) -}}
|
||||
{{- if or (not $portRange.high) (gt $portToCheck ($portRange.high | float64)) -}}
|
||||
{{- $_ := set $portRange "high" $portToCheck -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user