Skip to content

Commit 5fb08d5

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

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ spec:
3434
try:
3535
- script:
3636
content: |
37-
set -e
37+
set -ex
3838
IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
3939
4040
podnames=()
@@ -119,7 +119,6 @@ spec:
119119
- script:
120120
content: |
121121
set -e
122-
123122
for i in {1..10}; do
124123
nbid=$(KUBECONFIG=$KUBECONFIG NAMESPACE=$NAMESPACE LINODE_TOKEN=$LINODE_TOKEN ../scripts/get-nb-id.sh)
125124
@@ -129,7 +128,7 @@ spec:
129128
-H "accept: application/json" \
130129
"https://api.linode.com/v4/nodebalancers/${nbid}/firewalls" || true)
131130
132-
if echo "$fw" | jq -e '.data[].rules.inbound[] | select(.ports | contains("8080"))' > /dev/null; then
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)