File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ generate-capl-cluster-manifests: clusterctl
173173 LINODE_FIREWALL_ENABLED=$(LINODE_FIREWALL_ENABLED ) LINODE_OS=$(LINODE_OS ) VPC_NAME=$(VPC_NAME ) $(CLUSTERCTL ) generate cluster $(CLUSTER_NAME ) \
174174 --kubernetes-version $(K8S_VERSION ) --infrastructure linode-linode:$(CAPL_VERSION ) \
175175 --control-plane-machine-count $(CONTROLPLANE_NODES ) --worker-machine-count $(WORKER_NODES ) --flavor kubeadm-dual-stack > $(MANIFEST_NAME ) .yaml
176- IMG=$(IMG ) ./hack/patch-capl-manifest.sh $(MANIFEST_NAME ) .yaml
176+ IMG=$(IMG ) NB_IPV6_CIDR= $( NB_IPV6_CIDR ) ./hack/patch-capl-manifest.sh $(MANIFEST_NAME ) .yaml
177177
178178.PHONY : create-capl-cluster
179179create-capl-cluster : clusterctl
@@ -253,7 +253,7 @@ e2e-test-subnet:
253253 SUBNET_NAME=testing CLUSTER_NAME=$(SUBNET_CLUSTER_NAME ) MANIFEST_NAME=$(SUBNET_MANIFEST_NAME ) VPC_NAME=$(CLUSTER_NAME ) \
254254 VPC_NETWORK_CIDR=172.16.0.0/16 K8S_CLUSTER_CIDR=172.16.64.0/18 make generate-capl-cluster-manifests
255255 # Add subnetNames to HelmChartProxy
256- IMG=$(IMG ) ./hack/patch-capl-manifest.sh $(SUBNET_MANIFEST_NAME ) .yaml testing
256+ IMG=$(IMG ) NB_IPV6_CIDR= $( NB_IPV6_CIDR ) ./hack/patch-capl-manifest.sh $(SUBNET_MANIFEST_NAME ) .yaml testing
257257 # Create the second cluster
258258 MANIFEST_NAME=$(SUBNET_MANIFEST_NAME ) CLUSTER_NAME=$(SUBNET_CLUSTER_NAME ) KUBECONFIG_PATH=$(SUBNET_KUBECONFIG_PATH ) \
259259 make create-capl-cluster
Original file line number Diff line number Diff line change 99MANIFEST_PATH=" $1 "
1010SUBNET_NAME=" ${2:- } "
1111IMG_TAG=" ${IMG##*: } "
12- NB_IPV6_CIDR=" ${NB_IPV6_CIDR:- 2600 : 3c06 ::/ 32 } "
12+ NB_IPV6_CIDR=" ${NB_IPV6_CIDR:- } "
1313
1414yq -i e '
1515 select(.kind == "LinodeVPC").spec.ipv6Range = [{"range": "auto"}] |
@@ -30,12 +30,14 @@ yq -i e '
3030 )
3131' " ${MANIFEST_PATH} "
3232
33- NB_IPV6_CIDR=" ${NB_IPV6_CIDR} " yq -i e '
34- (
35- select(.kind == "LinodeFirewall" and (.metadata.name | test("-nb$") | not)).spec.inboundRules[] |
36- select(.label == "inbound-api-server" or .label == "accept-NodeBalancer").addresses.ipv6
37- ) = [strenv(NB_IPV6_CIDR)]
38- ' " ${MANIFEST_PATH} "
33+ if [ -n " ${NB_IPV6_CIDR} " ]; then
34+ NB_IPV6_CIDR=" ${NB_IPV6_CIDR} " yq -i e '
35+ (
36+ select(.kind == "LinodeFirewall" and (.metadata.name | test("-nb$") | not)).spec.inboundRules[] |
37+ select(.label == "inbound-api-server" or .label == "accept-NodeBalancer").addresses.ipv6
38+ ) = [strenv(NB_IPV6_CIDR)]
39+ ' " ${MANIFEST_PATH} "
40+ fi
3941
4042if [ -n " ${SUBNET_NAME} " ]; then
4143 tmp_values=" $( mktemp) "
You can’t perform that action at this time.
0 commit comments