From 6fea82be766ed5ad0161e84eb697fa459718a27d Mon Sep 17 00:00:00 2001 From: joyceliu Date: Mon, 23 Oct 2023 16:16:27 +0800 Subject: [PATCH] fix(calico): change default calico arg: IPV4POOL_NAT_OUTGOING to true Signed-off-by: joyceliu --- cmd/kk/apis/kubekey/v1alpha2/network_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kk/apis/kubekey/v1alpha2/network_types.go b/cmd/kk/apis/kubekey/v1alpha2/network_types.go index 3f1759dab..aadefdaef 100644 --- a/cmd/kk/apis/kubekey/v1alpha2/network_types.go +++ b/cmd/kk/apis/kubekey/v1alpha2/network_types.go @@ -139,7 +139,7 @@ func (n *NetworkConfig) EnableMultusCNI() bool { // EnableIPV4POOL_NAT_OUTGOING is used to determine whether to enable CALICO_IPV4POOL_NAT_OUTGOING. func (c *CalicoCfg) EnableIPV4POOL_NAT_OUTGOING() bool { if c.Ipv4NatOutgoing == nil { - return false + return true } return *c.Ipv4NatOutgoing }