-
Notifications
You must be signed in to change notification settings - Fork 452
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
Cleanup deprecations #1250
Cleanup deprecations #1250
Conversation
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.
code changes lgtm
/lgtm
I am not sure why static checks were disabled before, @saschagrunert ok to enable it?
/remove-kind deprecation Deprecation kind is used to deprecate features. This is a cleanup |
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.
Thank you for the contribution @surik! Unfortunately CI is not happy about it. We could also give golangci-lint a version and config bump if you want.
24790d4
to
68bed6b
Compare
Hi @saschagrunert no need to bump |
@surik the streaming tests seems to fail, I bet it's related to the context. |
68bed6b
to
fab93f2
Compare
/approve |
fab93f2
to
61f2d97
Compare
Honesty I do not fully understand what's wrong with the containerd tests. @saschagrunert let me know if you have any ideas. |
Ugh, those tests seem to be broken all over the place 🤔 |
61f2d97
to
2fb907b
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert, SergeyKanzhelev, surik 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 |
Please rebase to the the latest CI changes in. |
As of Golang 1.20 this is not needed anymore. The math/rand package now automatically seeds the global random number generator
By using golang.org/x/text/cases
SA1019 - Using a deprecated function, variable, constant or field See https://staticcheck.dev/docs/checks/#SA1019
2fb907b
to
544d479
Compare
New changes are detected. LGTM label has been removed. |
@k8s-ci-robot merged without giving GitHub actions a chance to retest 👀 |
What type of PR is this?
/kind cleanup
/kind deprecation
What this PR does / why we need it:
io/ioutil
has been deprecated since Go 1.19.rand.Seed
has been deprecated since Go 1.20strings.Title
has been deprecated since Go 1.18executor.Stream
is deprecated: useStreamWithContext
instead (Support cancelable SPDY executor stream kubernetes/kubernetes#103177)urfave's cli.NewExitError
is deprecated. This function is a duplicate ofExit
and will eventually be removed.Which issue(s) this PR fixes:
None
Special notes for your reviewer:
I addressed each issue in its own commit so should be easier to review one by one. I'm happy to squash everything if needed.
I had to exclude some checks for
SA1019
as the proposed alternative doesn't look compatible with the protobuf in cri-api.Also, I'm not sure that I went right direction addressing
strings.Title
.Does this PR introduce a user-facing change?