@@ -9,14 +9,14 @@ OS_LINUX = 1
9
9
endif
10
10
endif
11
11
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
20
20
21
21
KIND_VLAN_NIC = $(shell echo $${KIND_VLAN_NIC:-eth0})
22
22
ifneq ($(KIND_NETWORK_UNDERLAY ) ,kind)
@@ -391,9 +391,9 @@ kind-install-underlay-hairpin: kind-install-underlay-hairpin-ipv4
391
391
.PHONY : kind-install-underlay-ipv4
392
392
kind-install-underlay-ipv4 : kind-disable-hairpin kind-load-image kind-untaint-control-plane
393
393
$(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 ))"@' \
397
397
-e ' s@^VLAN_ID=.*@VLAN_ID="0"@' \
398
398
-e ' s/VERSION=.*/VERSION=$(VERSION)/' \
399
399
dist/images/install.sh | \
0 commit comments