Skip to content

Commit 2e902db

Browse files
authored
Merge pull request #9183 from chaunceyjiang/dual
🌱 Make dev cluster networking configurable
2 parents a8356e4 + f137d0b commit 2e902db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hack/kind-install-for-capd.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ if [[ "${TRACE-0}" == "1" ]]; then
3131
fi
3232

3333
KIND_CLUSTER_NAME=${CAPI_KIND_CLUSTER_NAME:-"capi-test"}
34-
34+
# See: https://kind.sigs.k8s.io/docs/user/configuration/#ip-family
35+
KIND_NETWORK_IPFAMILY=${KIND_NETWORK_IPFAMILY:-"dual"}
3536

3637
# 1. If kind cluster already exists exit.
3738
if [[ "$(kind get clusters)" =~ .*"${KIND_CLUSTER_NAME}".* ]]; then
@@ -59,7 +60,7 @@ cat <<EOF | kind create cluster --name="$KIND_CLUSTER_NAME" --config=-
5960
kind: Cluster
6061
apiVersion: kind.x-k8s.io/v1alpha4
6162
networking:
62-
ipFamily: dual
63+
ipFamily: ${KIND_NETWORK_IPFAMILY}
6364
nodes:
6465
- role: control-plane
6566
extraMounts:

0 commit comments

Comments
 (0)