File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
- a20f94f052259a063e3fb07d88a61ec6e8ba707c
1
+ 7012b0fa6ff9258adf969aba44c06091858e2f26
Original file line number Diff line number Diff line change 155
155
fi
156
156
157
157
# Create KinD cluster
158
- if ! (kind create cluster --name=" ${NAME} " --config " ${CONFIG} " -v9 --retain --image " ${IMAGE} " --wait=60s ); then
158
+ if ! (kind create cluster --name=" ${NAME} " --config " ${CONFIG} " -v9 --retain --image " ${IMAGE} " --wait=180s ); then
159
159
echo " Could not setup KinD environment. Something wrong with KinD setup. Exporting logs."
160
160
exit 1
161
161
fi
230
230
CONTAINER_IP=$( docker inspect " ${CLUSTER_NAME} -control-plane" --format " {{ .NetworkSettings.Networks.kind.IPAddress }}" )
231
231
kind get kubeconfig --name " ${CLUSTER_NAME} " --internal | \
232
232
sed " s/${CLUSTER_NAME} -control-plane/${CONTAINER_IP} /g" > " ${CLUSTER_KUBECONFIG} "
233
+ if [ ! -s " ${CLUSTER_KUBECONFIG} " ]; then
234
+ # TODO(https://github.com/istio/istio/issues/33096) remove this retry
235
+ echo " FAIL: unable to get kubeconfig on first try, trying again"
236
+ sleep 10
237
+ # Output for debugging
238
+ kind get kubeconfig --name " ${CLUSTER_NAME} " --internal
239
+ kind get kubeconfig --name " ${CLUSTER_NAME} " --internal | \
240
+ sed " s/${CLUSTER_NAME} -control-plane/${CONTAINER_IP} /g" > " ${CLUSTER_KUBECONFIG} "
241
+ fi
233
242
234
243
# Enable core dumps
235
244
docker exec " ${CLUSTER_NAME} " -control-plane bash -c " sysctl -w kernel.core_pattern=/var/lib/istio/data/core.proxy && ulimit -c unlimited"
You can’t perform that action at this time.
0 commit comments