-
Notifications
You must be signed in to change notification settings - Fork 38.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
Stop publishing Pod ResourceVersion in Endpoints and EndpointSlice API #108450
Stop publishing Pod ResourceVersion in Endpoints and EndpointSlice API #108450
Conversation
@tnqn: This issue is currently awaiting triage. If a SIG or subproject 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. |
/sig network |
@@ -830,7 +830,7 @@ func TestEndpointsEqualBeyondHash(t *testing.T) { | |||
expected: false, | |||
}, | |||
{ | |||
name: "Pod resourceVersion changed", |
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.
shouldn't we keep this test case as-is, and add a new test case to exercise "removed"?
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.
done, I removed it because I thought there is no longer Pod resourceVersion changed case in main code. But yes, the function is still supposed to return true for this case.
@@ -926,10 +926,10 @@ func TestEndpointSubsetsEqualIgnoreResourceVersion(t *testing.T) { | |||
expected: false, | |||
}, | |||
{ | |||
name: "Pod ResourceVersion changed", |
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.
same comment here about adding a test case and keeping this one as-is
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.
done, thanks.
comments on tests but the change lgtm |
The field is not used anywhere and its value may be stale as Endpoints and EndpointSlice won't be updated if there is only Pod ResourceVersion change..
e0c76cf
to
906e6d4
Compare
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.
Thanks @liggitt. Addressed your comments.
@@ -830,7 +830,7 @@ func TestEndpointsEqualBeyondHash(t *testing.T) { | |||
expected: false, | |||
}, | |||
{ | |||
name: "Pod resourceVersion changed", |
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.
done, I removed it because I thought there is no longer Pod resourceVersion changed case in main code. But yes, the function is still supposed to return true for this case.
@@ -926,10 +926,10 @@ func TestEndpointSubsetsEqualIgnoreResourceVersion(t *testing.T) { | |||
expected: false, | |||
}, | |||
{ | |||
name: "Pod ResourceVersion changed", |
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.
done, thanks.
/retest |
1 similar comment
/retest |
Thanks @tnqn! The code LGTM, but I've got a tiny nit on the release note. The current one made me think that this was an API level change, not a controller one. Maybe something like this would be clearer:
|
Thanks @robscott. Release note updated as suggested. |
/lgtm |
For the changelog note, I'd like to make it clear that ResourceVersion is actually part of the Is it feasible to use a hyperlink, eg |
@sftim I have updated "Pod ResourceVersion" to "resourceVersion of targetRef", hope it's clearer now. The releast note is wrapped by code block syntax, hyperlink won't be displayed. |
You can use Markdown in release notes, right? |
updated as you suggested. |
Should we mark the field as deprecated in the API comments? |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: freehan, robscott, thockin, tnqn 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This is to follow up #108078 (comment).
The field is not used anywhere and its value may be stale after #50934 and #108078.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
cc @aojea @liggitt @thockin @robscott
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: