Skip to content

Commit

Permalink
Merge pull request #9183 from chaunceyjiang/dual
Browse files Browse the repository at this point in the history
🌱 Make dev cluster networking configurable
  • Loading branch information
k8s-ci-robot committed Aug 14, 2023
2 parents a8356e4 + f137d0b commit 2e902db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hack/kind-install-for-capd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ if [[ "${TRACE-0}" == "1" ]]; then
fi

KIND_CLUSTER_NAME=${CAPI_KIND_CLUSTER_NAME:-"capi-test"}

# See: https://kind.sigs.k8s.io/docs/user/configuration/#ip-family
KIND_NETWORK_IPFAMILY=${KIND_NETWORK_IPFAMILY:-"dual"}

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

0 comments on commit 2e902db

Please sign in to comment.