Skip to content

Conversation

@thaJeztah
Copy link
Member

still some indirect dependencies using the non-go modules version (see kubernetes/kubernetes#106841, kubernetes/kube-openapi#271)

full diff: emicklei/go-restful@v2.9.5...v3.7.3

  • Switch to using go modules
  • Add check for wildcard to fix CORS filter
  • Add check on writer to prevent compression of response twice
  • Add OPTIONS shortcut WebService receiver
  • Add Route metadata to request attributes or allow adding attributes to routes
  • Add wroteHeader set
  • Enable content encoding on Handle and ServeHTTP
  • Feat: support google custom verb
  • Feature: override list of method allowed without content-type
  • Fix Allow header not set on '405: Method Not Allowed' responses
  • Fix Go 1.15: conversion from int to string yields a string of one rune
  • Fix WriteError return value
  • Fix: use request/response resulting from filter chain
  • handle path params with prefixes and suffixes
  • HTTP response body was broken, if struct to be converted to JSON has boolean value
  • List available representations in 406 body
  • Support describing response headers
  • Unwrap function in filter chain + remove unused dispatchWithFilters

Signed-off-by: Sebastiaan van Stijn [email protected]

@theopenlab-ci
Copy link

theopenlab-ci bot commented Dec 6, 2021

Build succeeded.

@thaJeztah
Copy link
Member Author

I should add that it looks to be non-trivial to update this dependency in kubernetes (see kubernetes/kubernetes#106841 and kubernetes/kube-openapi#271), so we won't be able to get rid of the old version (yet). Updating the dependency should not be "critical" (assuming the old version is still somewhat maintained).

I guess we could either;

  • accept this PR, considering it "one step into upgrading" (and get rid of the old version once k8s is updated)
  • close this PR, and keep it "for later" (however, k8s has containerd as dependency, so I guess that would still be an issue)

/cc @dims @mikebrow for visibility / suggestions / input.

@kzys
Copy link
Member

kzys commented Dec 8, 2021

Personally I prefer "one step into upgrading" approach. Someone need to take the first step.

@thaJeztah
Copy link
Member Author

Personally I prefer "one step into upgrading" approach. Someone need to take the first step.

Agreed. I don't think this PR changes any of the public signatures, so should probably be fine (but I appreciate the extra eyes to be sure I didn't overlook any)

@thaJeztah
Copy link
Member Author

@AkihiroSuda @dims ptal

@dims
Copy link
Member

dims commented Jan 7, 2022

@k8s-ci-robot
Copy link

@dims: GitHub didn't allow me to assign the following users: fedebongio.

Note that only containerd members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

Details

In response to this:

@fedebongio this PR primarily affects api-machinery from what i can tell, can you please assign someone to review this?
https://cs.k8s.io/?q=emicklei%2Fgo-restful&i=nope&files=&excludeFiles=swagger%7Cvendor%7CCHANGELOG%7Cgo.sum%7Cgo.mod&repos=kubernetes/kubernetes

/assign @fedebongio
/sig api-machinery

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.

@kzys
Copy link
Member

kzys commented Jan 31, 2022

@fedebongio @dims can you take a look? I thought I could assign to him manually, but not.

@dims
Copy link
Member

dims commented Jan 31, 2022

@kzys apologies, i assumed this was the k/k repository somehow

@dims
Copy link
Member

dims commented Jan 31, 2022

@dmcgowan please take a look to see if we need to do this before 1.6?

@kzys kzys added this to the 1.7 milestone Feb 9, 2022
@kzys
Copy link
Member

kzys commented Feb 9, 2022

Synced-up with @dims. According to him;

it can wait i think we are having some trouble updating that dependency in k8s.

So I'm adding this one to the 1.7 milestone.

@estesp
Copy link
Member

estesp commented Feb 18, 2022

This PR has merge conflicts now, just FYI @thaJeztah

full diff: emicklei/go-restful@v2.9.5...v3.7.3

- Switch to using go modules
- Add check for wildcard to fix CORS filter
- Add check on writer to prevent compression of response twice
- Add OPTIONS shortcut WebService receiver
- Add Route metadata to request attributes or allow adding attributes to routes
- Add wroteHeader set
- Enable content encoding on Handle and ServeHTTP
- Feat: support google custom verb
- Feature: override list of method allowed without content-type
- Fix Allow header not set on '405: Method Not Allowed' responses
- Fix Go 1.15: conversion from int to string yields a string of one rune
- Fix WriteError return value
- Fix: use request/response resulting from filter chain
- handle path params with prefixes and suffixes
- HTTP response body was broken, if struct to be converted to JSON has boolean value
- List available representations in 406 body
- Support describing response headers
- Unwrap function in filter chain + remove unused dispatchWithFilters

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Member Author

Thanks for the ping; rebased

@theopenlab-ci
Copy link

theopenlab-ci bot commented Feb 18, 2022

Build succeeded.

@kzys
Copy link
Member

kzys commented Feb 22, 2022

@eStep Can you take a look and merge this change? Seems good to go.

Copy link
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@estesp estesp merged commit 2b2372d into containerd:main Feb 22, 2022
@thaJeztah thaJeztah deleted the bump_go_restful branch February 22, 2022 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants