Skip to content
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

Update dependencies to kubernetes 1.23 #4567

Conversation

MaciekPytel
Copy link
Contributor

@MaciekPytel MaciekPytel commented Dec 28, 2021

Includes go.mod update, simple import fixes and moving to go 1.17. The move to 1.17 is required, because k8s itself has moved and the dependencies no longer compile using go1.16.

Notably, the go version tag in go.mod is purposefully left at go1.16 (even though it's not what we actually use). This is needed, because go1.17 changes how go.mod work and the upstream kubernetes haven't transitioned to the new go.mod yet (they misrepresent go version in go.mod exactly the same way).
Reference: kubernetes/kubernetes#105563 (comment)

Also added go:build tags matching existing +build tags for all cluster-autoscaler files across different providers. This should have no effect, but it is a part of golang migration to new syntax and both tags is expected by go fmt in go1.17. Added verify-gofmt.sh exceptions for some autogenerated VPA files instead, as VPA shouldn't be built anyway from a CA release branch. Updated verify-boilerplate tooling to be compatible with new tags.

Kubernetes 1.23 uses that version and the vendored code no
longer compiles using go1.16 (which we used previously).
Following the upstream Kubernetes I'm leaving the go version
in go.mod file at 1.16, as bumping it to 1.17 changes go mod
behavior in a way that breaks some kubernetes tooling
(kubernetes/kubernetes#105563 (comment)
for context).
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 28, 2021
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 28, 2021
As of go1.17 both tags are expected to exist simultaneously.
Added tags in all cluster autoscaler files. Added verify-gomod.sh
exceptions for non-compliant autogenerated VPA files.
CA no longer compiles on go1.16.
Copy link
Contributor

@mwielgus mwielgus left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Dec 28, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MaciekPytel, mwielgus

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:
  • OWNERS [MaciekPytel,mwielgus]

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 merged commit b938b4c into kubernetes:cluster-autoscaler-release-1.23 Dec 28, 2021
Fedosin pushed a commit to Fedosin/kubernetes-autoscaler that referenced this pull request May 25, 2022
Update dependencies to kubernetes 1.23
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