We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76fe73e commit dfcf449Copy full SHA for dfcf449
action.yml
@@ -110,10 +110,14 @@ runs:
110
exit 1
111
fi
112
113
- # Try forcibly setting an IP6 on the host
+ # If the interface has a link-local address then
114
+ # try forcibly setting an IP6 on the host
115
# https://github.com/projectcalico/calico/issues/6443#issuecomment-1203759890
- sudo ip -6 addr add 2001:1001:1001:1001::1/64 dev eth0
116
- NODE_IP6=2001:1001:1001:1001::1
+ if [[ "$NODE_IP6" == fe80* ]]; then
117
+ echo "Link-local IPv6 found: $NODE_IP6, overriding"
118
+ sudo ip -6 addr add 2001:1001:1001:1001::1/64 dev eth0
119
+ NODE_IP6=2001:1001:1001:1001::1
120
+ fi
121
122
if [[ "${{ inputs.ip-mode }}" = "dual" ]]; then
123
echo K3S_CLUSTER_CIDR="10.42.0.0/16,2001:cafe:42::/56"
0 commit comments