From e6f9aba8bf9383a89055fc2f2c7a7c8761af2daf Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Mon, 13 Feb 2023 19:56:43 +0200 Subject: [PATCH] force only one of the 2 --- .../common/1.0.0/templates/lib/pod/_podSecurityContext.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -}}