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
refactor: move wait for endpoints to new pkg #77156
refactor: move wait for endpoints to new pkg #77156
Conversation
81e5033
to
cc26379
Compare
/cc @andrewsykim |
@@ -26,13 +26,14 @@ import ( | |||
"sync" | |||
"time" | |||
|
|||
"k8s.io/api/core/v1" | |||
v1 "k8s.io/api/core/v1" |
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.
Related to #77045
/test pull-kubernetes-e2e-gce-100-performance |
test/e2e/framework/endpoints/wait.go
Outdated
|
||
// WaitForEndpoint waits for the specified endpoint to be ready. | ||
func WaitForEndpoint(c clientset.Interface, ns, name string) error { | ||
for t := time.Now(); time.Since(t) < framework.EndpointRegisterTimeout; time.Sleep(framework.Poll) { |
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.
Should we also move EndpointRegisterTimeout in here?
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.
Yeah, I moved EndpointRegisterTimeout
to this file and made it private since no one else uses this constant.
cc26379
to
774c15f
Compare
/lgtm |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: draveness, timothysc 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 |
/kind cleanup
/priority backlog
What this PR does / why we need it:
#76206
#77095
Does this PR introduce a user-facing change?: