Skip to content

Commit 3d3256d

Browse files
authored
fix talos e2e failure on ipv4 (kubeovn#5812)
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
1 parent 9216651 commit 3d3256d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

makefiles/talos.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ talos-libvirt-clean:
155155
talos-apply-config-%:
156156
$(eval TALOS_ENDPOINT_IP_FAMILY = $(shell echo $* | sed 's/dual/ipv4/'))
157157
$(eval TALOS_CONTROL_PLANE_IP = $(TALOS_CONTROL_PLANE_$(shell echo $(TALOS_ENDPOINT_IP_FAMILY) | tr '[:lower:]' '[:upper:]')))
158-
$(eval TALOS_ENDPOINT = https://[$(TALOS_CONTROL_PLANE_IP)]:6443)
158+
$(eval TALOS_ENDPOINT = https://$(if $(filter ipv6,$(TALOS_ENDPOINT_IP_FAMILY)),[$(TALOS_CONTROL_PLANE_IP)],$(TALOS_CONTROL_PLANE_IP)):6443)
159159
$(eval TALOS_REGISTRY_MIRROR_URL = $(TALOS_REGISTRY_MIRROR_URL_$(shell echo $(TALOS_ENDPOINT_IP_FAMILY) | tr '[:lower:]' '[:upper:]')))
160160
@echo ">>> Generating Talos configuration..."
161161
ip_family=$* jinjanate talos/cluster-config.yaml.j2 -o talos/cluster-config.yaml

0 commit comments

Comments
 (0)