From a1f1e7dc3a17b5ff8cbb96fb865b673b0601ab51 Mon Sep 17 00:00:00 2001 From: Rosam9899 Date: Wed, 24 Jun 2026 16:12:29 -0700 Subject: [PATCH] Update OC Functions.inc Changed whitelist to allowlist --- bin/ocFunctions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ocFunctions.inc b/bin/ocFunctions.inc index 60f5cb1..5c97451 100755 --- a/bin/ocFunctions.inc +++ b/bin/ocFunctions.inc @@ -2186,7 +2186,7 @@ function getAllowLists() fi for project in ${projects}; do - allowLists=$(oc -n ${project} --context=${context} get route --template '{{ range $item := .items }}{{ range $key,$value := .metadata.annotations }}{{ if (eq $key "haproxy.router.openshift.io/ip_whitelist") }}{{ printf "%s,%s\n" $item.metadata.name $value }}{{ end }}{{ end }}{{end}}') + allowLists=$(oc -n ${project} --context=${context} get route --template '{{ range $item := .items }}{{ range $key,$value := .metadata.annotations }}{{ if (eq $key "haproxy.router.openshift.io/ip_allowlist) }}{{ printf "%s,%s\n" $item.metadata.name $value }}{{ end }}{{ end }}{{end}}') if [ ! -z "${allowLists}" ]; then echoWarning \\n"${project}:" echo -e "NAME:,ALLOW LIST:\n${allowLists}" | column -t -s ,