-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Wait for healthy extension server before registering APIService, handle ServiceUnavailable errors #58697
Wait for healthy extension server before registering APIService, handle ServiceUnavailable errors #58697
Conversation
// kubectl get deployments -n <aggregated-api-namespace> && status == Running | ||
// NOTE: aggregated apis should generally be set up in there own namespace (<aggregated-api-namespace>). As the test framework | ||
// is setting up a new namespace, we are just using that. | ||
err = framework.WaitForDeploymentComplete(client, deployment) |
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. Not sure it's the source for the flakes, but it could be.
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.
Do we need add a framework.ExpectNoError
call to ensure err
is nil?
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.
yes, added
a968aab
to
b967d1b
Compare
@@ -1200,6 +1200,10 @@ func hasRemainingContent(c clientset.Interface, clientPool dynamic.ClientPool, n | |||
if apierrs.IsMethodNotSupported(err) || apierrs.IsNotFound(err) || apierrs.IsForbidden(err) { | |||
continue | |||
} | |||
// skip unavailable servers |
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.
maybe add a comment why we add this
Only a nit. Otherwise lgtm. |
/cc @hzxuzhonghu |
84e4e81
to
193aa57
Compare
@@ -120,7 +120,8 @@ func (r *proxyHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) { | |||
location.Scheme = "https" | |||
rloc, err := r.serviceResolver.ResolveEndpoint(handlingInfo.serviceNamespace, handlingInfo.serviceName) | |||
if err != nil { | |||
http.Error(w, fmt.Sprintf("missing route (%s)", err.Error()), http.StatusInternalServerError) | |||
glog.Errorf("error resolving %s/%s: %v", handlingInfo.serviceName, handlingInfo.serviceNamespace, err) |
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.
ns/name
193aa57
to
f045b00
Compare
f045b00
to
91ba8c3
Compare
/lgtm |
/assign deads2k |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deads2k, liggitt, sttts Associated issue: #58642 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
@liggitt Thanks for the fix! :) |
/retest |
Automatic merge from submit-queue (batch tested with PRs 58697, 58658, 58676, 58674). If you want to cherry-pick this change to another branch, please follow the instructions here. |
@liggitt: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
fixes #58642
followup to #58070