File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments