Skip to content

Commit 5941928

Browse files
authored
Merge pull request #3508 from chrischdi/pr-calico-mtu
🌱 e2e: set mtu for calico
2 parents 99762a9 + 16b4c48 commit 5941928

File tree

2 files changed

+7136
-1646
lines changed

2 files changed

+7136
-1646
lines changed

hack/e2e.sh

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,27 @@ if [[ "${GOVC_URL:-}" == "10.2.224.4" ]]; then
137137
E2E_CONF_OVERRIDE_FILE="$(pwd)/test/e2e/config/config-overrides-mirror-prow.yaml"
138138
fi
139139

140+
# Ensure vSphere is reachable
141+
function wait_for_vsphere_reachable() {
142+
local n=0
143+
until [ $n -ge 30 ]; do
144+
curl -s -v "https://${VSPHERE_SERVER}/sdk" --connect-timeout 2 -k && RET=$? || RET=$?
145+
if [[ "$RET" -eq 0 ]]; then
146+
break
147+
fi
148+
n=$((n + 1))
149+
echo "Failed to reach https://${VSPHERE_SERVER}/sdk. Retrying in 1s ($n/30)"
150+
sleep 1
151+
done
152+
return "$RET"
153+
}
154+
# Only run the boskos/check for IPAM when we need them (not for vcsim)
155+
if [[ ! "${GINKGO_FOCUS:-}" =~ $RE_VCSIM ]]; then
156+
wait_for_vsphere_reachable
157+
fi
158+
140159
# Make tests run in-parallel
141-
export GINKGO_NODES=5
160+
export GINKGO_NODES=4
142161

143162
# Only run the boskos/check for IPAM when we need them (not for vcsim)
144163
if [[ ! "${GINKGO_FOCUS:-}" =~ $RE_VCSIM ]]; then

0 commit comments

Comments
 (0)