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
v1.21: Fix test flake in old svc registry #105110
Conversation
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.
there's also a staticcheck failure about an unused err
that looks relevant
test/e2e/network/service.go
Outdated
_, err = svcClient.Patch(context.TODO(), testSvcName, types.MergePatchType, | ||
[]byte(`{"metadata":{"annotations":{"patchedstatus":"true"}},"status":{"loadBalancer":`+string(lbStatusJSON)+`}}`), | ||
metav1.PatchOptions{}, "status") | ||
err = retry.RetryOnConflict(retry.DefaultRetry, func() error { |
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.
status patch actually works fine retrying internally (because it delegates through to the retrying rest handler). It's the spec patch below that needed retry by the test. I probably wouldn't relax this bit of the test unnecessarily.
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.
ACK
(identical comments on the 1.22 PR) |
98bd41b
to
0c05026
Compare
/lgtm |
ping @kubernetes/release-managers |
/triage accepted |
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, liggitt, thockin 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 |
/test pull-kubernetes-e2e-gce-ubuntu-containerd |
/kind bug
/kind flake
/kind regression
What this PR does / why we need it:
Fixes a test-flake due to how service registry is implemented (fix in master).
Which issue(s) this PR fixes:
Fixes #105028