diff --git a/library/common/1.0.0/templates/lib/pod/_podSecurityContext.tpl b/library/common/1.0.0/templates/lib/pod/_podSecurityContext.tpl index 5ad6c82e58..34345cfe03 100644 --- a/library/common/1.0.0/templates/lib/pod/_podSecurityContext.tpl +++ b/library/common/1.0.0/templates/lib/pod/_podSecurityContext.tpl @@ -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 -}}