-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
IPAddress.spec.gateway should be optional for IPv6 and maybe for IPv4 #8536
Comments
This issue is currently awaiting triage. If CAPI contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
+1 for optional ipv6, but required for ipv4. |
+1 for ipv6, while it's not unheard of networks without a gateway (from a technical point of view), it's extremely uncommon in Kubernetes environments |
Thx for writing up the issue. Also agree with only making it optional for ipv6 |
Do we think at this point we'd be happy to merge #8525 then? |
I ran this by our networking colleagues, and it turns out that we are actually using IPv4 without gateways at the moment (we don't even have network addresses, don't ask me how that works). Sorry for bringing this up so late. I think they told me before, but our networking is such a rabbit hole that I missed that while thinking about it in CAPI context. I would therefore go with optional for both, ipv4 and ipv6, to allow maximum flexibility. The benefit of validating at this level is that providers can rely on the field to be present. |
To be fair, you were writing "almost" always :). I guess we found one of those cases now where a gateway is not required. Sounds fine to me to make gateway optional for both. |
👍 making gateway optional for both is fine with me as well. |
Okay so let's go ahead with: #8506 |
Due to a sluggish implementation of the validation of IPAddress resources, the .spec.gateway field is currently required.
While this does make sense for IPv4, where you almost always provide a gateway when using DHCP (which the IPAM contract is essentially replacing), it does not for IPv6, which supports other methods like Router Advertising to configure a gateway.
We currently have two implementations, one making it completely optional, the other only for IPv6.
#8506 (entirely optional)
#8525 (ipv6 optional)
I'm in favor of making it optional for ipv6, but keep requiring it for ipv4.
For context: kubernetes-sigs/cluster-api-ipam-provider-in-cluster#70
cc @fabriziopandini @sbueringer
The text was updated successfully, but these errors were encountered: