-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Return 503 for custom resource requests during server start #81244
Conversation
/sig api-machinery will work on an integration test exercising this |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt 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 |
This looks right. +1 for test. |
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go
Outdated
Show resolved
Hide resolved
d702581
to
9a58ee1
Compare
9a58ee1
to
98b61d1
Compare
comments addressed, added tests |
98b61d1
to
37c19ef
Compare
flake #81238 /retest |
/retest |
1 similar comment
/retest |
Did a pass. The negotiated error handling looks great. Thanks for the comprehensive testing. /lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Ensures that requests to potential custom resource endpoints while the server is starting get a 503 error, not a 404
Which issue(s) this PR fixes:
Fixes #71218
Does this PR introduce a user-facing change?: