Skip to content

chore: bump k8s.io dependencies to v0.27.1 - #12015

Merged
mattfarina merged 2 commits into
helm:mainfrom
yann-soubeyrand:bump-k8s-io-deps
May 1, 2023
Merged

mattfarina merged 2 commits into
helm:mainfrom
yann-soubeyrand:bump-k8s-io-deps

Conversation

@yann-soubeyrand

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR upgrades k8s.io dependencies to v0.27.1 and should fix #11996, #11997, #11998 and #11999.

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Adapt to changes in 1.27 client libs:

* The OpenAPIGetter method is now private, but the Validator method does
  what is needed instead.
* The function wait.PollImmediateUntil is deprecated. Switch to the
  recommended new function wait.PollUntilContextCancel.

Related dependency changes:

change k8s.io/kube-openapi v0.0.0-20221012153701-172d655c2280 => v0.0.0-20230308215209-15aac26d736a

And some transitive version changes:

add github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0
add github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1
remove github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153
github.com/go-errors/errors v1.0.1 => v1.4.2
github.com/go-openapi/jsonpointer v0.19.5 => v0.19.6
github.com/go-openapi/jsonreference v0.20.0 => v0.20.1
github.com/go-openapi/swag v0.19.14 => v0.22.3
github.com/golang/protobuf v1.5.2 => v1.5.3
github.com/mailru/easyjson v0.7.6 => v0.7.7
github.com/onsi/ginkgo/v2 v2.4.0 => v2.9.1
github.com/onsi/gomega v1.23.0 => v1.27.4
github.com/rogpeppe/go-internal v1.9.0 => v1.10.0
golang.org/x/mod v0.8.0 => v0.9.0
golang.org/x/net v0.7.0 => v0.8.0
golang.org/x/term v0.5.0 => v0.6.0
golang.org/x/tools v0.6.0 => v0.7.0
gotest.tools/v3 v3.0.3 => v3.4.0
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 => v0.0.0-20221116044647-bc3834ca7abd
sigs.k8s.io/kustomize/api v0.12.1 => v0.13.2
sigs.k8s.io/kustomize/kyaml v0.13.9 => v0.14.1

Signed-off-by: Tom Wieczorek <[email protected]>
@pull-request-size pull-request-size Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 22, 2023
@yann-soubeyrand

Copy link
Copy Markdown
Contributor Author

I see that @twz123 already opened the same PR, feel free to favor his PR if he wants to update it.

@twz123

twz123 commented Apr 25, 2023

Copy link
Copy Markdown
Contributor

Hey @yann-soubeyrand 👋 I didn't receive any feedback on PR #11894 yet, so I deliberately left the PR at 0.27.0, because I'm not sure what version policy the Helm maintainers have in mind when updating Kubernetes deps, and if it's okay for them to skip 0.27.0. Im fine with either of our PRs being merged, as long as Helm gains compatibility with k8s 1.27 :-)

@mattfarina mattfarina left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note, the change to the Factory Interface is one of the few places we allow a change like this. This interface is a subset of the Kubernetes interface and that one can change between minor versions of Kubernetes. There is no option but to allow changes in that interface.

Comment thread pkg/kube/factory.go
Comment on lines -34 to -35
// DynamicClient returns a dynamic client ready for use
DynamicClient() (dynamic.Interface, error)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Since it's failing CI due to deprecated methods, can you restore this on the Interface. We may not need it right now but we would like to minimize the Interface change for now.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I restored the DynamicClient() method on the interface like you asked me, but I don’t get the link with the error in the CI (deprecation of the wait.PollImmediateUntil function)?

@mattfarina mattfarina added this to the 3.12.0 milestone Apr 28, 2023

@sabre1041 sabre1041 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mattfarina
mattfarina merged commit b814289 into helm:main May 1, 2023
@yann-soubeyrand
yann-soubeyrand deleted the bump-k8s-io-deps branch May 1, 2023 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants