Skip to content

Commit 26aa33b

Browse files
committed
fix wip
Signed-off-by: zhangzujian <[email protected]>
1 parent 9101d93 commit 26aa33b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

kind.mk

+11-11
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ OS_LINUX = 1
99
endif
1010
endif
1111

12-
KIND_NETWORK_UNDERLAY = $(shell echo $${KIND_NETWORK_UNDERLAY:-kind})
13-
KIND_UNDERLAY_VAR_PREFIX = $(shell echo $(KIND_NETWORK_UNDERLAY) | tr '[:lower:]-' '[:upper:]_')
14-
KIND_UNDERLAY_IPV4_SUBNET = $(KIND_UNDERLAY_VAR_PREFIX)_IPV4_SUBNET
15-
KIND_UNDERLAY_IPV6_SUBNET = $(KIND_UNDERLAY_VAR_PREFIX)_IPV6_SUBNET
16-
KIND_UNDERLAY_IPV4_GATEWAY = $(KIND_UNDERLAY_VAR_PREFIX)_IPV4_GATEWAY
17-
KIND_UNDERLAY_IPV6_GATEWAY = $(KIND_UNDERLAY_VAR_PREFIX)_IPV6_GATEWAY
18-
KIND_UNDERLAY_IPV4_EXCLUDE_IPS = $(KIND_UNDERLAY_VAR_PREFIX)_IPV4_EXCLUDE_IPS
19-
KIND_UNDERLAY_IPV6_EXCLUDE_IPS = $(KIND_UNDERLAY_VAR_PREFIX)_IPV6_EXCLUDE_IPS
12+
DOCKER_NETWORK_UNDERLAY = $(shell echo $${DOCKER_NETWORK_UNDERLAY:-underlay})
13+
UNDERLAY_VAR_PREFIX = $(shell echo $(DOCKER_NETWORK_UNDERLAY) | tr '[:lower:]-' '[:upper:]_')
14+
UNDERLAY_IPV4_SUBNET = $(UNDERLAY_VAR_PREFIX)_IPV4_SUBNET
15+
UNDERLAY_IPV6_SUBNET = $(UNDERLAY_VAR_PREFIX)_IPV6_SUBNET
16+
UNDERLAY_IPV4_GATEWAY = $(UNDERLAY_VAR_PREFIX)_IPV4_GATEWAY
17+
UNDERLAY_IPV6_GATEWAY = $(UNDERLAY_VAR_PREFIX)_IPV6_GATEWAY
18+
UNDERLAY_IPV4_EXCLUDE_IPS = $(UNDERLAY_VAR_PREFIX)_IPV4_EXCLUDE_IPS
19+
UNDERLAY_IPV6_EXCLUDE_IPS = $(UNDERLAY_VAR_PREFIX)_IPV6_EXCLUDE_IPS
2020

2121
KIND_VLAN_NIC = $(shell echo $${KIND_VLAN_NIC:-eth0})
2222
ifneq ($(KIND_NETWORK_UNDERLAY),kind)
@@ -391,9 +391,9 @@ kind-install-underlay-hairpin: kind-install-underlay-hairpin-ipv4
391391
.PHONY: kind-install-underlay-ipv4
392392
kind-install-underlay-ipv4: kind-disable-hairpin kind-load-image kind-untaint-control-plane
393393
$(call docker_network_info,$(KIND_NETWORK_UNDERLAY))
394-
@sed -e 's@^[[:space:]]*POD_CIDR=.*@POD_CIDR="$($(KIND_UNDERLAY_IPV4_SUBNET))"@' \
395-
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$($(KIND_UNDERLAY_IPV4_GATEWAY))"@' \
396-
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$($(KIND_UNDERLAY_IPV4_EXCLUDE_IPS))"@' \
394+
@sed -e 's@^[[:space:]]*POD_CIDR=.*@POD_CIDR="$($(UNDERLAY_IPV4_SUBNET))"@' \
395+
-e 's@^[[:space:]]*POD_GATEWAY=.*@POD_GATEWAY="$($(UNDERLAY_IPV4_GATEWAY))"@' \
396+
-e 's@^[[:space:]]*EXCLUDE_IPS=.*@EXCLUDE_IPS="$($(UNDERLAY_IPV4_EXCLUDE_IPS))"@' \
397397
-e 's@^VLAN_ID=.*@VLAN_ID="0"@' \
398398
-e 's/VERSION=.*/VERSION=$(VERSION)/' \
399399
dist/images/install.sh | \

0 commit comments

Comments
 (0)