force only one of the 2

This commit is contained in:
Stavros kois
2023-02-13 19:56:43 +02:00
parent af6c6b36e2
commit e6f9aba8bf

View File

@@ -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 -}}