Skip to content

Conversation

jsafrane
Copy link
Contributor

@jsafrane jsafrane commented Apr 23, 2024

Update all Kubernetes libraries to 1.30 and go to 1.22. Fix our code accordingly (v1.ResourceRequirements -> v1.VolumeResourceRequirements.

When at it:

  • Remove gometalinter usage. It has been deprecated and archived in 2019, it does not work with go 1.22. We don't use it in other storage repos either.
  • Fix boilerplate check, unittest.assertEquals has been removed from Python (3.12).

@xing-yang @msau42

Update to Kubernetes 1.30 and go 1.22. Removed gometalinter.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 23, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 23, 2024
Update all Kubernetes libraries to 1.30 and go to 1.22.
GO111MODULE=off is not supported in `go get` any longer. And running `go
get github.com/alecthomas/gometalinter` would install the metalinter and
its libs into go.mod / go.sum.

Therefore remove the whole github.com/alecthomas/gometalinter installation,
users must install it manually before running `make`.

And we should move to another linter ASAP.
unittest.assertEquals has been removed from Python a long time ago. Use
assert.Equal.
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 23, 2024
@jsafrane
Copy link
Contributor Author

I'm updating go version in kubernetes/test-infra#32493

@xing-yang
Copy link

CI failed.

@jsafrane
Copy link
Contributor Author

/retest

@jsafrane
Copy link
Contributor Author

Damn, I need to install gometalinter in CI somehow.

/bin/sh: 1: gometalinter: not found

github.com/alecthomas/gometalinter has been deprecated for years and now it
does not work with go 1.22. I'm removing it without replacement, our other
sig-storage CSI projects do not use any linter either.
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 25, 2024
@jsafrane
Copy link
Contributor Author

I removed the whole gometalinter, I did not make it work in go 1.22 easily and I don't think it's that useful either.

@xing-yang
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 25, 2024
@k8s-ci-robot k8s-ci-robot merged commit 189c6e7 into kubernetes-sigs:master Apr 25, 2024
@rihib rihib mentioned this pull request Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants