Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/ocFunctions.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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 ,
Expand Down