Skip to content

Commit fa7ab48

Browse files
committed
fix version mismatch
1 parent 9910c82 commit fa7ab48

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

Makefile

+16-9
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,12 @@ kind-install-chart: kind-load-image kind-untaint-control-plane
321321
kind-install: kind-load-image
322322
kubectl config use-context kind-kube-ovn
323323
@$(MAKE) kind-untaint-control-plane
324-
bash dist/images/install.sh
324+
sed 's/VERSION=.*/VERSION=$(VERSION)/' dist/images/install.sh | bash
325325
kubectl describe no
326326

327327
.PHONY: kind-install-dev
328328
kind-install-dev:
329-
$(call kind_load_image,kube-ovn,$(REGISTRY)/kube-ovn:$(DEV_TAG))
330-
kubectl config use-context kind-kube-ovn
331-
@$(MAKE) kind-untaint-control-plane
332-
sed 's/VERSION=.*/VERSION=$(DEV_TAG)/' dist/images/install.sh | bash
329+
@VERSION=$(DEV_TAG) $(MAKE) kind-install
333330

334331
.PHONY: kind-install-ipv4
335332
kind-install-ipv4: kind-install-overlay-ipv4
@@ -344,8 +341,8 @@ kind-install-ovn-ic: kind-load-image kind-install
344341
sed -e 's/10.16.0/10.18.0/g' \
345342
-e 's/10.96.0/10.98.0/g' \
346343
-e 's/100.64.0/100.68.0/g' \
347-
dist/images/install.sh | \
348-
bash
344+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
345+
dist/images/install.sh | bash
349346
kubectl describe no
350347

351348
docker run -d --name ovn-ic-db --network kind $(REGISTRY)/kube-ovn:$(VERSION) bash start-ic-db.sh
@@ -376,6 +373,7 @@ kind-install-underlay-ipv4: kind-disable-hairpin kind-load-image kind-untaint-co
376373
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV4_GATEWAY)"@' \
377374
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV4_EXCLUDE_IPS)"@' \
378375
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
376+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
379377
dist/images/install.sh | \
380378
ENABLE_VLAN=true VLAN_NIC=eth0 bash
381379
kubectl describe no
@@ -387,6 +385,7 @@ kind-install-underlay-u2o-interconnection-dual: kind-disable-hairpin kind-load-i
387385
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV4_GATEWAY),$(KIND_IPV6_GATEWAY)"@' \
388386
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV4_EXCLUDE_IPS),$(KIND_IPV6_EXCLUDE_IPS)"@' \
389387
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
388+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
390389
dist/images/install.sh | \
391390
ENABLE_SSL=true DUAL_STACK=true ENABLE_VLAN=true VLAN_NIC=eth0 U2O_INTERCONNECTION=true bash
392391

@@ -397,6 +396,7 @@ kind-install-underlay-hairpin-ipv4: kind-enable-hairpin kind-load-image kind-unt
397396
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV4_GATEWAY)"@' \
398397
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV4_EXCLUDE_IPS)"@' \
399398
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
399+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
400400
dist/images/install.sh | \
401401
ENABLE_VLAN=true VLAN_NIC=eth0 bash
402402
kubectl describe no
@@ -415,6 +415,7 @@ kind-install-underlay-ipv6: kind-disable-hairpin kind-load-image kind-untaint-co
415415
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV6_GATEWAY)"@' \
416416
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV6_EXCLUDE_IPS)"@' \
417417
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
418+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
418419
dist/images/install.sh | \
419420
IPV6=true ENABLE_VLAN=true VLAN_NIC=eth0 bash
420421

@@ -425,6 +426,7 @@ kind-install-underlay-hairpin-ipv6: kind-enable-hairpin kind-load-image kind-unt
425426
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV6_GATEWAY)"@' \
426427
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV6_EXCLUDE_IPS)"@' \
427428
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
429+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
428430
dist/images/install.sh | \
429431
IPV6=true ENABLE_VLAN=true VLAN_NIC=eth0 bash
430432

@@ -442,6 +444,7 @@ kind-install-underlay-dual: kind-disable-hairpin kind-load-image kind-untaint-co
442444
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV4_GATEWAY),$(KIND_IPV6_GATEWAY)"@' \
443445
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV4_EXCLUDE_IPS),$(KIND_IPV6_EXCLUDE_IPS)"@' \
444446
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
447+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
445448
dist/images/install.sh | \
446449
DUAL_STACK=true ENABLE_VLAN=true VLAN_NIC=eth0 bash
447450

@@ -452,6 +455,7 @@ kind-install-underlay-hairpin-dual: kind-enable-hairpin kind-load-image kind-unt
452455
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV4_GATEWAY),$(KIND_IPV6_GATEWAY)"@' \
453456
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV4_EXCLUDE_IPS),$(KIND_IPV6_EXCLUDE_IPS)"@' \
454457
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
458+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
455459
dist/images/install.sh | \
456460
DUAL_STACK=true ENABLE_VLAN=true VLAN_NIC=eth0 bash
457461

@@ -462,6 +466,7 @@ kind-install-underlay-logical-gateway-dual: kind-disable-hairpin kind-load-image
462466
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$(KIND_IPV4_GATEWAY)9,$(KIND_IPV6_GATEWAY)f"@' \
463467
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$(KIND_IPV4_GATEWAY),$(KIND_IPV4_EXCLUDE_IPS),$(KIND_IPV6_GATEWAY),$(KIND_IPV6_EXCLUDE_IPS)"@' \
464468
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
469+
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
465470
dist/images/install.sh | \
466471
DUAL_STACK=true ENABLE_VLAN=true \
467472
VLAN_NIC=eth0 LOGICAL_GATEWAY=true bash
@@ -477,7 +482,8 @@ kind-install-multus:
477482
kind-install-lb-svc: kind-load-image kind-untaint-control-plane
478483
$(call kind_load_image,kube-ovn,$(VPC_NAT_GW_IMG))
479484
kubectl apply -f yamls/lb-svc-attachment.yaml
480-
ENABLE_LB_SVC=true CNI_CONFIG_PRIORITY=10 dist/images/install.sh
485+
sed 's/VERSION=.*/VERSION=$(VERSION)/' dist/images/install.sh | \
486+
ENABLE_LB_SVC=true CNI_CONFIG_PRIORITY=10 bash
481487
kubectl describe no
482488

483489
.PHONY: kind-install-cilium
@@ -500,7 +506,8 @@ kind-install-cilium: kind-load-image kind-untaint-control-plane
500506
--set cni.configMap=cni-configuration
501507
kubectl -n kube-system rollout status ds cilium --timeout 300s
502508
bash dist/images/cilium.sh
503-
ENABLE_LB=false ENABLE_NP=false WITHOUT_KUBE_PROXY=true CNI_CONFIG_PRIORITY=10 bash dist/images/install.sh
509+
sed 's/VERSION=.*/VERSION=$(VERSION)/' dist/images/install.sh | \
510+
ENABLE_LB=false ENABLE_NP=false WITHOUT_KUBE_PROXY=true CNI_CONFIG_PRIORITY=10 bash
504511
kubectl describe no
505512

506513
.PHONY: kind-reload

0 commit comments

Comments
 (0)