Skip to content

Commit 0fdb2f1

Browse files
committed
fix talos e2e failure on ipv4 (#5812)
Signed-off-by: Mengxin Liu <[email protected]>
1 parent 39c91c7 commit 0fdb2f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)