-
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
Tolerate 406 mime-type errors attempting to load new openapi schema #61949
Conversation
cc @kubernetes/sig-cli-pr-reviews |
/assign roycaihw |
@@ -326,12 +326,12 @@ var returnedOpenAPI = openapi_v2.Document{ | |||
}, | |||
} | |||
|
|||
func openapiSchemaDeprecatedFakeServer() (*httptest.Server, error) { | |||
func openapiSchemaDeprecatedFakeServer(status int) (*httptest.Server, error) { | |||
var sErr error | |||
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { | |||
// old server returns 403 on new endpoint request |
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.
Nit, we need to update this:
// old server returns 403 on new endpoint request
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.
updated
78d29a3
to
51fb861
Compare
/status approved-for-milestone |
looks good to me. |
/retest |
1 similar comment
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dixudx, 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 |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process Pull Request Labels
|
/retest Review the full test history for this PR. Silence the bot with an |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
Thanks. /lgtm I didn't reproduce the 406 error against 1.8 & 1.9 masters (got 404), couldn't figure out what's the order our server used to honor the http errors in this case. Also, are we seeing the 406 problem with aggregator server? This one is requesting kubernetes/staging/src/k8s.io/kube-aggregator/pkg/controllers/openapi/downloader.go Lines 116 to 118 in 9789285
|
Fixes #61805
Fixes #61943