File tree Expand file tree Collapse file tree 8 files changed +12
-12
lines changed
lb-http-body-health-check
lb-http-status-health-check
lb-tcp-connection-health-check
lb-with-multiple-http-https-ports Expand file tree Collapse file tree 8 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ spec:
103103 fwconfig=$(curl -s \
104104 -H "Authorization: Bearer $LINODE_TOKEN" \
105105 -H "Content-Type: application/json" \
106- "https://api.linode.com/v4/networking/firewalls/$fwid")
106+ "https://api.linode.com/v4/networking/firewalls/$fwid" || true )
107107
108108 fw_attached_to_nb=$(echo $fwconfig | jq ".entities[] | select(.id == $nbid) | .id == $nbid")
109109
Original file line number Diff line number Diff line change 4343 nbconfig=$(curl -s \
4444 -H "Authorization: Bearer $LINODE_TOKEN" \
4545 -H "Content-Type: application/json" \
46- "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+ "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true )
4747
4848 if [[ -z $nbconfig ]]; then
4949 echo "Failed fetching nodebalancer config for port 80"
Original file line number Diff line number Diff line change 4343 nbconfig=$(curl -s \
4444 -H "Authorization: Bearer $LINODE_TOKEN" \
4545 -H "Content-Type: application/json" \
46- "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+ "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true )
4747
4848 if [[ -z $nbconfig ]]; then
4949 echo "Failed fetching nodebalancer config for port 80"
Original file line number Diff line number Diff line change 4343 nbconfig=$(curl -s \
4444 -H "Authorization: Bearer $LINODE_TOKEN" \
4545 -H "Content-Type: application/json" \
46- "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+ "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true )
4747
4848 if [[ -z $nbconfig ]]; then
4949 echo "Failed fetching nodebalancer config for port 80"
Original file line number Diff line number Diff line change 4343 nbconfig=$(curl -s \
4444 -H "Authorization: Bearer $LINODE_TOKEN" \
4545 -H "Content-Type: application/json" \
46- "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)')
46+ "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[] | select(.port == 80)' || true )
4747
4848 if [[ -z $nbconfig ]]; then
4949 echo "Failed fetching nodebalancer config for port 80"
Original file line number Diff line number Diff line change 7575 IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
7676
7777 for i in {1..10}; do
78- port_80=$(curl -s $IP:80 | grep "test-")
79- port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-")
78+ port_80=$(curl -s $IP:80 | grep "test-" || true )
79+ port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true )
8080
8181 if [[ -z $port_80 || -z $port_443 ]]; then
8282 sleep 20
Original file line number Diff line number Diff line change @@ -67,10 +67,10 @@ spec:
6767 IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
6868
6969 for i in {1..10}; do
70- port_80=$(curl -s $IP:80 | grep "test-")
71- port_8080=$(curl -s $IP:8080 | grep "test-")
72- port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-")
73- port_8443=$(curl --resolve linode.test:8443:$IP --cacert ../certificates/ca.crt -s https://linode.test:8443 | grep "test-")
70+ port_80=$(curl -s $IP:80 | grep "test-" || true )
71+ port_8080=$(curl -s $IP:8080 | grep "test-" || true )
72+ port_443=$(curl --resolve linode.test:443:$IP --cacert ../certificates/ca.crt -s https://linode.test:443 | grep "test-" || true )
73+ port_8443=$(curl --resolve linode.test:8443:$IP --cacert ../certificates/ca.crt -s https://linode.test:8443 | grep "test-" || true )
7474
7575 if [[ -z $port_80 || -z $port_8080 || -z $port_443 || -z $port_8443 ]]; then
7676 sleep 15
Original file line number Diff line number Diff line change 7878 nbconfig=$(curl -s \
7979 -H "Authorization: Bearer $LINODE_TOKEN" \
8080 -H "Content-Type: application/json" \
81- "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[]? | select(.port == 80)')
81+ "https://api.linode.com/v4/nodebalancers/$nbid/configs" | jq '.data[]? | select(.port == 80)' || true )
8282
8383 if [[ -z $nbconfig ]]; then
8484 echo "Failed fetching nodebalancer config for port 80"
You can’t perform that action at this time.
0 commit comments