Skip to content

Commit de01740

Browse files
committed
Fix IPv6 backend Chainsaw reachability check
1 parent 9ed47f7 commit de01740

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

e2e/test/lb-with-ipv6-backends/chainsaw-test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,13 @@ spec:
7777
try:
7878
- script:
7979
content: |
80-
set -euo pipefail
81-
IP=$(kubectl get svc svc-test -n $NAMESPACE -o json | jq -r .status.loadBalancer.ingress[0].ip)
82-
80+
bash -ce '
81+
IP=$(kubectl get svc svc-test -n "$NAMESPACE" -o json | jq -r .status.loadBalancer.ingress[0].ip)
8382
podnames=()
8483
8584
for i in {1..10}; do
8685
if [[ ${#podnames[@]} -lt 2 ]]; then
87-
output=$(curl -s $IP:80 | jq -e .podName || true)
86+
output=$(curl -s "$IP":80 | jq -e .podName || true)
8887
8988
if [[ "$output" == *"test-"* ]]; then
9089
unique=true
@@ -95,7 +94,7 @@ spec:
9594
fi
9695
done
9796
if [[ "$unique" == true ]]; then
98-
podnames+=($output)
97+
podnames+=("$output")
9998
fi
10099
fi
101100
else
@@ -109,6 +108,7 @@ spec:
109108
else
110109
echo "all pods responded"
111110
fi
111+
'
112112
check:
113113
($error == null): true
114114
(contains($stdout, 'all pods responded')): true

0 commit comments

Comments
 (0)