We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bf15e4 commit a862931Copy full SHA for a862931
1 file changed
e2e/test/lb-port-change/chainsaw-test.yaml
@@ -118,8 +118,7 @@ spec:
118
try:
119
- script:
120
content: |
121
- set -e
122
-
+ set -ex
123
for i in {1..10}; do
124
nbid=$(KUBECONFIG=$KUBECONFIG NAMESPACE=$NAMESPACE LINODE_TOKEN=$LINODE_TOKEN ../scripts/get-nb-id.sh)
125
@@ -128,8 +127,8 @@ spec:
128
127
-H "Content-Type: application/json" \
129
-H "accept: application/json" \
130
"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
+ echo "$fw" | jq -r '.data[].rules.inbound[]'
+ if echo "$fw" | jq -r '.data[].rules.inbound[].ports' | grep 8080 ; then
133
echo "firewall rule updated with new port"
134
break
135
fi
0 commit comments