restore endpoints topology fallback in kube-proxy 1.22#110245
Conversation
|
Hi @xh4n3. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions 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. |
|
/ok-to-test |
swetharepakula
left a comment
There was a problem hiding this comment.
Thanks for making the change! Mostly looks good to me. One suggestion for the unit tests.
There was a problem hiding this comment.
Can we add one test case where the node name and the deprecated topology are populated with different values to show that node name gets precedence over the value in deprecated topology.
There was a problem hiding this comment.
nice comment, thanks!
I've added the '3 endpoints that each with different nodeName and deprecated topology hostName' case.
d4d6e5e to
7e3e8ca
Compare
7e3e8ca to
a2e951e
Compare
Signed-off-by: xh4n3 <xyn1016@gmail.com>
a2e951e to
7bebac5
Compare
|
Thanks for the PR @xh4n3! This makes sense to me and matches the logic @liggitt described in #110208 (comment). I can't approve this, but LGTM. /lgtm |
|
/triage accepted |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dcbw, xh4n3 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/lgtm |
What type of PR is this?
/kind bug
/sig network
What this PR does / why we need it:
This PR let kube-proxy fallback to use
endpoint.DeprecatedTopology[v1.LabelHostname]whenendpoint.NodeNameis missing, so the kube-proxy can find local endpoints after upgrade from 1.20 to 1.22Which issue(s) this PR fixes:
Fixes #110208
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: