Skip to content

Commit a862931

Browse files
author
Jesus Carrillo
committed
add debug to step
1 parent 6bf15e4 commit a862931

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

e2e/test/lb-port-change/chainsaw-test.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ spec:
118118
try:
119119
- script:
120120
content: |
121-
set -e
122-
121+
set -ex
123122
for i in {1..10}; do
124123
nbid=$(KUBECONFIG=$KUBECONFIG NAMESPACE=$NAMESPACE LINODE_TOKEN=$LINODE_TOKEN ../scripts/get-nb-id.sh)
125124
@@ -128,8 +127,8 @@ spec:
128127
-H "Content-Type: application/json" \
129128
-H "accept: application/json" \
130129
"https://api.linode.com/v4/nodebalancers/${nbid}/firewalls" || true)
131-
132-
if echo "$fw" | jq -e '.data[].rules.inbound[] | select(.ports | contains("8080"))' > /dev/null; then
130+
echo "$fw" | jq -r '.data[].rules.inbound[]'
131+
if echo "$fw" | jq -r '.data[].rules.inbound[].ports' | grep 8080 ; then
133132
echo "firewall rule updated with new port"
134133
break
135134
fi

0 commit comments

Comments
 (0)