-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify Calico IPv6 configuration #11725
Conversation
If you want to simplify, please automatically set IPv4 and IPv6 support based on NonMasqueradeCIDR. |
There is no need for override. Dual-stack is out of scope. The CNI needs to operate in the same protocol version as the pod and service networks. |
Dual-stack is out of scope for k8s. CNI still has some tricks that can be done via internal dual-stack. |
Those "tricks" could be coded up as separate features with their own settings. |
/lgtm |
/hold |
@@ -223,6 +223,7 @@ func (tf *TemplateFunctions) AddTo(dest template.FuncMap, secretStore fi.SecretS | |||
return strings.Join(labels, ",") | |||
} | |||
|
|||
dest["IsIPv6Only"] = tf.IsIPv6Only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be ok with something like this? It would make the template more clear.
At this stage, it is irrelevant if cluster is IPv4 or IPv6, but only if they should be enabled or not.
Later, if we decide to add DualStack, we can keep the template and just modify the logic in the function(s).
dest["IsIPv6Only"] = tf.IsIPv6Only | |
dest["EnableIPv4"] = !tf.IsIPv6Only | |
dest["EnableIPv6"] = tf.IsIPv6Only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can iterate on this later. For now, it makes it possible to run IPv6 setups easier.
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.