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

fix(deps): update k8s #8400

Merged
merged 11 commits into from
Jan 29, 2025
Merged

fix(deps): update k8s #8400

merged 11 commits into from
Jan 29, 2025

Conversation

elastic-renovate-prod[bot]
Copy link
Contributor

@elastic-renovate-prod elastic-renovate-prod bot commented Jan 13, 2025

This PR contains the following updates:

Package Type Update Change
k8s.io/api require patch v0.32.0 -> v0.32.1
k8s.io/apiextensions-apiserver require patch v0.32.0 -> v0.32.1
k8s.io/apimachinery require patch v0.32.0 -> v0.32.1
k8s.io/cli-runtime require patch v0.32.0 -> v0.32.1
k8s.io/client-go require patch v0.32.0 -> v0.32.1
k8s.io/kubectl require patch v0.32.0 -> v0.32.1
sigs.k8s.io/controller-runtime require minor v0.19.3 -> v0.20.1
sigs.k8s.io/controller-tools require minor v0.16.5 -> v0.17.1
sigs.k8s.io/kustomize/kyaml require minor v0.18.1 -> v0.19.0

Release Notes

kubernetes/api (k8s.io/api)

v0.32.1

Compare Source

kubernetes/apiextensions-apiserver (k8s.io/apiextensions-apiserver)

v0.32.1

Compare Source

kubernetes/apimachinery (k8s.io/apimachinery)

v0.32.1

Compare Source

kubernetes/cli-runtime (k8s.io/cli-runtime)

v0.32.1

Compare Source

kubernetes/client-go (k8s.io/client-go)

v0.32.1

Compare Source

kubernetes/kubectl (k8s.io/kubectl)

v0.32.1

Compare Source

kubernetes-sigs/controller-runtime (sigs.k8s.io/controller-runtime)

v0.20.1

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.20.0...v0.20.1

v0.20.0

Compare Source

Highlights

  • Based on k8s.io/* v1.32 libraries and minimum Go version is now v1.23
  • New experimental priority queue feature
    • More details in #​3013 and #​2374
    • Can be enabled via manager.Options.Controller.UsePriorityQueue
    • Please give it a try and provide feedback in #​2374
  • AggregatedDiscovery is automatically used when available (#​2901)
  • As usual, many improvements to the fake client

Changes since v0.19.0

⚠️ Breaking Changes

✨ New Features

  • cache: Add EnableWatchBookmarks option (defaults to true) (#​3017)
  • cache: Export NewInformer option (#​3061)
  • cert-watcher: Add polling (#​3020 #​3050)
  • controller: Add experimental priority queue (off per default) (#​3013 #​3014 #​3060 #​3066)
  • fake client: Allow adding indexes at runtime (#​3021)
  • fake client: Add support for ServiceAccountToken subresource (#​2969)
  • restmapper: Use AggregatedDiscovery if available (#​2901)
  • util: Add HasOwnerReference func (#​2882)
  • webhook: Add custom path option (#​2998)

🐛 Bug Fixes

  • controller: Error when source.Start() never returns (#​2997 #​3006 #​3008)
  • fake client: Don't return items on invalid selector (#​3022)
  • fake client: Fix TOCTOU races (#​2980)
  • fake client: Preserve TypeMeta during Get call with PartialObjectMeta (#​2949)
  • fake client: Preserve TypeMeta during List call with UnstructuredList (#​3074)
  • manager: Fix RenewDeadline typo in leader election (#​3032)
  • manager: Use leader elector with client timeout (#​3028 #​3034)

🌱 Others

🌱 CI

📖 Additionally, there have been 7 contributions to our documentation. (#​2942, #​2985, #​2996, #​3002, #​3039, #​3062)

Dependencies

Added

Nothing has changed.

Changed
  • cel.dev/expr: v0.15.0 → v0.18.0
  • github.com/Azure/go-ansiterm: d185dfc → 306776e
  • github.com/go-openapi/jsonpointer: v0.19.6 → v0.21.0
  • github.com/go-openapi/swag: v0.22.4 → v0.23.0
  • github.com/google/btree: v1.0.1 → v1.1.3
  • github.com/google/cel-go: v0.20.1 → v0.22.0
  • github.com/google/pprof: 4bfdf5a → d1b30fe
  • github.com/gregjones/httpcache: 9cad4c3 → 901d907
  • github.com/jonboulle/clockwork: v0.2.2 → v0.4.0
  • github.com/moby/spdystream: v0.4.0 → v0.5.0
  • github.com/onsi/ginkgo/v2: v2.19.0 → v2.21.0
  • github.com/onsi/gomega: v1.33.1 → v1.35.1
  • github.com/stoewer/go-strcase: v1.2.0 → v1.3.0
  • github.com/xiang90/probing: 43a291a → a49e3df
  • go.etcd.io/bbolt: v1.3.9 → v1.3.11
  • go.etcd.io/etcd/api/v3: v3.5.14 → v3.5.16
  • go.etcd.io/etcd/client/pkg/v3: v3.5.14 → v3.5.16
  • go.etcd.io/etcd/client/v2: v2.305.13 → v2.305.16
  • go.etcd.io/etcd/client/v3: v3.5.14 → v3.5.16
  • go.etcd.io/etcd/pkg/v3: v3.5.13 → v3.5.16
  • go.etcd.io/etcd/raft/v3: v3.5.13 → v3.5.16
  • go.etcd.io/etcd/server/v3: v3.5.13 → v3.5.16
  • go.uber.org/zap: v1.26.0 → v1.27.0
  • golang.org/x/crypto: v0.24.0 → v0.28.0
  • golang.org/x/exp: f3d0a9c8a7402a
  • golang.org/x/mod: v0.17.0 → v0.21.0
  • golang.org/x/net: v0.26.0 → v0.30.0
  • golang.org/x/oauth2: v0.21.0 → v0.23.0
  • golang.org/x/sync: v0.7.0 → v0.8.0
  • golang.org/x/sys: v0.21.0 → v0.26.0
  • golang.org/x/telemetry: f48c80bbda5523
  • golang.org/x/term: v0.21.0 → v0.25.0
  • golang.org/x/text: v0.16.0 → v0.19.0
  • golang.org/x/time: v0.3.0 → v0.7.0
  • golang.org/x/tools: e35e4cc → v0.26.0
  • golang.org/x/xerrors: 04be3eb5ec99f8
  • google.golang.org/genproto/googleapis/api: 5315273f6391c0
  • google.golang.org/genproto/googleapis/rpc: f6361c8f6391c0
  • google.golang.org/genproto: b8732ecef43131
  • google.golang.org/protobuf: v1.34.2 → v1.35.1
  • k8s.io/api: v0.31.0 → v0.32.0
  • k8s.io/apiextensions-apiserver: v0.31.0 → v0.32.0
  • k8s.io/apimachinery: v0.31.0 → v0.32.0
  • k8s.io/apiserver: v0.31.0 → v0.32.0
  • k8s.io/client-go: v0.31.0 → v0.32.0
  • k8s.io/code-generator: v0.31.0 → v0.32.0
  • k8s.io/component-base: v0.31.0 → v0.32.0
  • k8s.io/gengo/v2: 51d4e062b36238
  • k8s.io/kms: v0.31.0 → v0.32.0
  • k8s.io/kube-openapi: 70dd37632ad38e
  • k8s.io/utils: 18e509b3ea5e8c
  • sigs.k8s.io/apiserver-network-proxy/konnectivity-client: v0.30.3 → v0.31.0
  • sigs.k8s.io/json: bc3834c9aa6b5e
  • sigs.k8s.io/structured-merge-diff/v4: v4.4.1 → v4.4.2
Removed
  • github.com/golang/groupcache: 41bb18b
  • github.com/imdario/mergo: v0.3.6

Thanks to all our contributors! 😊

v0.19.5

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.19.4...v0.19.5

v0.19.4

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.19.3...v0.19.4

kubernetes-sigs/controller-tools (sigs.k8s.io/controller-tools)

v0.17.1

Compare Source

What's Changed

Dependencies

Full Changelog: kubernetes-sigs/controller-tools@v0.17.0...v0.17.1

v0.17.0

Compare Source

What's Changed

Misc

envtest

Dependency bumps

New Contributors

Full Changelog: kubernetes-sigs/controller-tools@v0.16.0...v0.17.0


Configuration

📅 Schedule: Branch creation - "after 1am on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@elastic-renovate-prod elastic-renovate-prod bot added the >renovate PRs created by or relating to Renovate label Jan 13, 2025
@elastic-renovate-prod
Copy link
Contributor Author

elastic-renovate-prod bot commented Jan 13, 2025

ℹ Artifact update notice

File name: hack/upgrade-test-harness/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
k8s.io/component-base v0.32.0 -> v0.32.1
File name: hack/operatorhub/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
k8s.io/client-go v0.32.0 -> v0.32.1
File name: hack/config-extractor/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Details:

Package Change
k8s.io/client-go v0.32.0 -> v0.32.1
File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 14 additional dependencies were updated

Details:

Package Change
golang.org/x/crypto v0.31.0 -> v0.32.0
github.com/google/cel-go v0.20.1 -> v0.22.0
github.com/stoewer/go-strcase v1.2.0 -> v1.3.0
golang.org/x/mod v0.21.0 -> v0.22.0
golang.org/x/net v0.33.0 -> v0.34.0
golang.org/x/sys v0.28.0 -> v0.29.0
golang.org/x/term v0.27.0 -> v0.28.0
golang.org/x/tools v0.26.0 -> v0.29.0
google.golang.org/genproto/googleapis/api v0.0.0-20240528184218-531527333157 -> v0.0.0-20240826202546-f6391c0de4c7
google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094 -> v0.0.0-20240826202546-f6391c0de4c7
k8s.io/apiextensions-apiserver v0.31.2 -> v0.32.0
k8s.io/apiserver v0.31.2 -> v0.32.0
k8s.io/component-base v0.31.2 -> v0.32.0
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.30.3 -> v0.31.0
File name: hack/manifest-gen/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 7 additional dependencies were updated

Details:

Package Change
github.com/go-openapi/jsonpointer v0.19.6 -> v0.21.0
github.com/go-openapi/swag v0.22.4 -> v0.23.0
github.com/google/gnostic-models v0.6.8 -> v0.6.9
golang.org/x/net v0.26.0 -> v0.28.0
google.golang.org/protobuf v1.34.2 -> v1.35.1
k8s.io/kube-openapi v0.0.0-20240228011516-70dd3763d340 -> v0.0.0-20241212222426-2c72e554b1e7
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 -> v4.4.2

@elastic-renovate-prod elastic-renovate-prod bot force-pushed the renovate/k8s branch 2 times, most recently from 7c90cbb to 79d7315 Compare January 16, 2025 15:09
@thbkrkr thbkrkr changed the title fix(deps): update k8s fix(deps): update k8s, controller-runtime, controller-tools, kyaml Jan 17, 2025
@thbkrkr
Copy link
Contributor

thbkrkr commented Jan 17, 2025

buildkite test this

@elastic-renovate-prod elastic-renovate-prod bot changed the title fix(deps): update k8s, controller-runtime, controller-tools, kyaml fix(deps): update k8s Jan 17, 2025
@thbkrkr
Copy link
Contributor

thbkrkr commented Jan 27, 2025

There is a breaking change brought by controller-runtime update to v0.20 that implies some refactorings.

@pebrc
Copy link
Collaborator

pebrc commented Jan 27, 2025

I think we could make it work with minimal effort by recreating the deprecated interface. We are not using the controller-runtime webhook builder anyway. I will push a commit later to demonstrate the idea (if I get the tests to pass :-) )

@elastic-renovate-prod
Copy link
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@pebrc
Copy link
Collaborator

pebrc commented Jan 27, 2025

buildkite test this

@pebrc
Copy link
Collaborator

pebrc commented Jan 27, 2025

buildkite test this

@pebrc
Copy link
Collaborator

pebrc commented Jan 27, 2025

buildkite test this

@pebrc
Copy link
Collaborator

pebrc commented Jan 27, 2025

This is ready for a review. There is probably a more throrogh refactoring possible. Completely removing the custom webhok handler and going back to the controller-runtime one. This should be possible by wrapping the controller-runtime webhook handler with another handler that implements the only piece of custom functionality we need (I think) which is the namespace restriction when the operator runs with a fixed list of namespaces.

The reason I have not tried this in this PR is that others are waiting on the us updating the controller-runtime dependency and I did not want to block this unecessary for longer.

@pebrc pebrc requested review from thbkrkr and barkbay January 27, 2025 22:26
Copy link
Contributor

@thbkrkr thbkrkr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@barkbay barkbay left a comment

Choose a reason for hiding this comment

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

LGTM

@pebrc
Copy link
Collaborator

pebrc commented Jan 28, 2025

buildkite test this -f p=kind,s=8.17.0

@pebrc pebrc enabled auto-merge (squash) January 28, 2025 19:59
@pebrc pebrc merged commit 648f902 into main Jan 29, 2025
5 checks passed
@pebrc pebrc deleted the renovate/k8s branch January 29, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>renovate PRs created by or relating to Renovate v3.0.0 (next)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants