Skip to content

Commit b547b50

Browse files
Do not recreate kind cluster if aready present
This allows rerunning `setup.sh` in codespace, in case it failed. Issue: ZENKO-5096
1 parent 51de041 commit b547b50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/end2end/bootstrap-kind.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ EOF
7878
}
7979

8080
create_cluster() {
81+
if kind get clusters | grep -q "^${CLUSTER_NAME}$"; then
82+
echo "Kind cluster ${CLUSTER_NAME} already exists. Skipping creation."
83+
return
84+
fi
85+
8186
kind create cluster --name=${CLUSTER_NAME} --config=config.yaml
8287
}
8388

0 commit comments

Comments
 (0)