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 module sigs.k8s.io/controller-runtime to v0.17.2 #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 12, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
sigs.k8s.io/controller-runtime v0.8.3 -> v0.17.2 age adoption passing confidence

Release Notes

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

v0.17.2

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.17.1...v0.17.2

v0.17.1

Compare Source

What's Changed

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

v0.17.0

Compare Source

โš ๏ธ Breaking Changes

โœจ New Features

  • Cache: Allow defining options that apply to all namespaces without explicit config (#โ€‹2528)
  • Cache: Allow to remove informers (#โ€‹2285)
  • Cache: Add option to set WatchErrorHandler on informers (#โ€‹2494)
  • Client: client.MatchingFields now supports multiple indexes (#โ€‹2512)
  • Fake client: Add flowcontrol api v1 (#โ€‹2623)
  • Reconciler: Add reconcile.ObjectReconciler (#โ€‹2592)

๐Ÿ› Bug Fixes

  • Add corev1, coordinationv1 scheme for leader election when LeaderElection manager option is true (#โ€‹2461)
  • Cache: Default namespace only for namespaced object (#โ€‹2480)
  • Client: Don't truncate large int64s in MergePatch (#โ€‹2650)
  • controllerutil: Add RemoveControllerReference and HasControllerReference func (#โ€‹2509 #โ€‹2595)
  • controllerutil: Add RemoveOwnerReference func (#โ€‹2462)
  • Dependencies: Refactor tests to drop hard otel dependency (#โ€‹2460)
  • Envtest: CRDs that aren't convertible should unset spec.conversion (#โ€‹2525)
  • Fake client: Correctly identify if patch call was made on status (#โ€‹2508)
  • Fake client: Do not update anything but status when using subresource client (#โ€‹2479)
  • Fake client: Fix returning object after status update (#โ€‹2489)
  • Fake client: Fix status subresource getting updated on Update when it is empty (#โ€‹2484)
  • Fake client: Handle unstructured status update with fake client (#โ€‹2495)
  • Manager: Fix goroutine leak (#โ€‹2527)
  • Manager: Use HTTP client from leaderElectionConfig for leader election recorder provider (#โ€‹2464)
  • RESTMapper: Return NoResourceMatchError when appropriate for backwards compatibility. (#โ€‹2472)
  • Webhook: Handle http.NoBody (#โ€‹2605)

๐ŸŒฑ Others

  • Client: Make client.MatchingLabels faster (#โ€‹2529)
  • Envtest: Allow to ignore scheme.Convertible check for CRDs (#โ€‹2555)
  • Envtest: Improve process cleanup (#โ€‹2560)
  • Metrics: Add 100/1000s buckets for Prometheus workqueue histograms (#โ€‹2638)
  • Metrics: Avoid dependency on apiserver/options if metrics/filters are used (#โ€‹2645)
  • Replace k8s.io/utils/pointer with k8s.io/utils/ptr (#โ€‹2488)
  • Webhooks: Cleanup webhook variable assignment (#โ€‹2604)

๐ŸŒฑ Dependencies

๐Ÿ“– Additionally, there have been 5 contributions to our documentation. (#โ€‹2497, #โ€‹2498, #โ€‹2538, #โ€‹2599, #โ€‹2602, #โ€‹2635 #โ€‹2647)

Thanks to all our contributors! ๐Ÿ˜Š

v0.16.5

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.16.4...v0.16.5

v0.16.4

Compare Source

What's Changed

New Contributors

Full Changelog: kubernetes-sigs/controller-runtime@v0.16.3...v0.16.4

v0.16.3

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.16.2...v0.16.3

v0.16.2

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.16.1...v0.16.2

v0.16.1

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.16.0...v0.16.1

v0.16.0

Compare Source

Highlights

Changes since v0.15

โš ๏ธ Breaking Changes
โœจ New Features
๐Ÿ› Bug Fixes
๐ŸŒฑ Others
๐Ÿ“– Documentation and proposals
๐Ÿ“ˆ Dependencies

Thanks to all our contributors! ๐Ÿ˜Š

Full Changelog: kubernetes-sigs/controller-runtime@v0.15.0...v0.16.0

v0.15.3

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.15.2...v0.15.3

v0.15.2

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.15.1...v0.15.2

v0.15.1

Compare Source

What's Changed

Full Changelog: kubernetes-sigs/controller-runtime@v0.15.0...v0.15.1

v0.15.0

Compare Source

Controller Runtime v0.15

A note from the maintainers

The following release is probably the largest in the history of the project. Controller Runtime is a foundational piece for almost all controllers and operators and we're aware that breaking changes are never an ask for our users, especially while running production services.

We take breaking changes very seriously and carefully reviewed each one of these changes to improve the codebase, user experience, and future maintainability of the project.

The v0.15 release is a stepping stone towards maturity.

As always, please reach out in Slack in #controller-runtime.

Changes since v0.14.5

โš ๏ธ Breaking Changes

  • Make *http.Client configurable and use/share the same client by default (#โ€‹2122)
    • When using the default Manager configuration, no immediate changes are needed.
    • client/apiutil.NewDynamicRESTMapper signature has changed and now requires an *http.Client as parameter.
    • cluster.Cluster interface requires GetHTTPClient() method which must return an already configured, non-nil, *http.Client for the Cluster. When using cluster.New to create Clusters, the client is created internally if not specified as an Options field.
    • cluster.Options.MapperProvider field now requires a *rest.Config and *http.Client.
  • Deprecate Component Configuration config/v1alpha1 types (#โ€‹2149, #โ€‹2200)
    • The Component Configuration package has been unmaintained for over a year and is no longer actively developed. There are (currently) no plans to revive the package, or provide an alternative.
    • Users should migrate to a custom implementation that sets Manager.Options directly.
    • ๐Ÿ‘‰ Feedback requested: removal of the deprecated types and code is tracked in #โ€‹895.
  • Remove dependency injection functions (#โ€‹2134, #โ€‹2120)
    • The package pkg/inject has been removed, this package contained long deprecated injection functions (like InjectScheme, InjectLogger, InjectConfig, InjectClient, InjectCache, etc.).
    • The runtime injection functionality has been deprecated since Controller Runtime 0.10; all of the above fields can be passed from the Manager to structs or interfaces that need them.
  • Improve builder package capabilities and general UX (#โ€‹2135)
    • builder.Builder.Watches signature has changed, it now takes a client.Object instead of a source.Source as first argument.
      • For source.Source, use WatchesRawSource.
    • builder.Builder.WatchesMetadata has been added to simplify watching PartialObjectMetadata objects.
  • Refactor cache.Options, deprecate MultiNamespacedCacheBuilder (#โ€‹2157, #โ€‹2166)
    • cache.Options.Namespace has been removed in favor of cache.Options.Namespaces, a slice.
    • cache.Options.Resync has been renamed to SyncPeriod.
    • cache.Options.DefaultSelector has been removed and split in two fields:
      • cache.Options.DefaultLabelSelector
      • cache.Options.DefaultFieldSelector
    • cache.Options.DefaultTransform was added to provide a global transform function.
    • cache.Options.UnsafeDisableDeepCopy was added to provide a global toggle to disable DeepCopy of the objects from the cache before returning them to clients.
    • The following [..]ByObject field have been refactored:
      • cache.Options.SelectorsByObject has been removed, use cache.Options.ByObject[Object].Field and cache.Options.ByObject[Object].Label
      • cache.Options.UnsafeDisableDeepCopyByObject has been removed, use cache.Options.ByObject[Object].UnsafeDisableDeepCopy.
      • cache.Options.TransformByObject has been removed, use cache.Options.ByObject[Object].Transform.
    • cache.ObjectAll has been removed. This type was previously used to set selectors or transformation functions for every object, use the newly introduced default global options instead.
  • Add context to EventHandler(s) (#โ€‹2139)
    • handler.EventHandler and handler.Funcs interfaces require context.Context as the first parameter for every method.
    • handler.MapFunc signature has changed and now requires a context.Context.
  • Add client.{GroupVersionKindFor, IsObjectNamespaced} (#โ€‹2136)
    • The client.Client interface now requires and exposes these helper functions:
      • GroupVersionKindFor(Object) which returns the schema.GroupVersionKind for the object.
      • IsObjectNamespaced(Object) which returns true if the object's GroupVersionKind is namespaced, or false for global ones.
  • Remove DelegatedClient, move all related options in client.New (#โ€‹2150)
    • client.NewDelegatingClient constructor and client.NewDelegatingClientInput struct have been removed.
      • The DelegatingClient created a Client backed by a cache, use client.New and set client.Options.Cache to customize the client's caching behavior.
    • cluster.NewClientFunc has been moved to client.NewClientFunc.
    • cluster.ClientOptions has been removed.
    • cluster.DefaultNewClient has been removed.
    • cluster.ClientBuilderWithOptions has been removed.
  • Expose Manager.Cache/Client options, deprecate older options (#โ€‹2199, #โ€‹2177)
    • manager.Options.Cache is now the preferred way to customize the cache options for the manager.
      • Users can also keep using manager.Options.NewCache, which has now been marked as a low level primitive.
    • manager.Options.Client is now the preferred way to customize the client options for the manager.
      • Users can also keep using manager.Options.NewClient, which has now been marked as a low level primitive.
    • manager.Options.SyncPeriod has been deprecated in favor of manager.Options.Cache.SyncPeriod.
    • manager.Options.Namespace has been deprecated in favor of manager.Options.Cache.Namespaces.
    • manager.Options.DryRunClient has been deprecated in favor of manager.Options.Client.DryRun.
    • manager.Options.ClientDisableCacheFor has been deprecated in favor of manager.Options.Client.Cache.DisableCacheFor.
    • The following webhook server options have been deprecated, use manager.WebhookServer instead.
      • manager.Options.Port
      • manager.Options.Host
      • manager.Options.CertDir
      • manager.Options.TLSOpts
  • Remove cache.BuilderWithOptions (#โ€‹2300)
  • Add constructors for webhook/conversion, remove webhook/admission.GetDecoder() (#โ€‹2144)
    • There are two set of changes related to the webhooks and how they're exposed. For users using the Manager, there should be minimal to no required changes.
    • webhook/admission/Webhook.GetDecoder() method has been removed, it was unused before and relied on runtime dependency injection.
    • webhook/conversion.Webhook struct has been un-exported. Users should use webhook/conversion.NewWebhookHandler instead.
  • pkg/webhook/admission:
    • Use Result.Message instead of Result.Reason (#โ€‹1539)
    • Validator and CustomValidator interfaces have been modified to allow returning warnings (#โ€‹2014)
  • Testing: Fake client status handling (#โ€‹2259)
    • Added a new WithStatusSubresource option and pre-populating it with
      all in-tree resources that have a status subresource
    • Update and Patch methods now don't change the status for any such
      resource anymore
    • The status clients Update and Patch methods now only change the status
      for any such resource
  • Remove high cardinality metrics (#โ€‹2217, #โ€‹2298)
    • rest_client_request_latency_seconds
    • rest_client_request_duration_seconds
    • rest_client_request_size_bytes
    • rest_client_response_size_bytes
  • Allow passing a custom webhook server (#โ€‹2293, #โ€‹2329)
    • The webhook.Server struct is now an interface
    • webhook.NewServer can be used to pass in and customize the default server
  • Flatten fields in controller.Options (#โ€‹2307)
  • Update fake client deletionTimestamp behavior (#โ€‹2316)
    • The fake client will panic if initialized with an object that has a DeletionTimestamp and no finalizer
    • The fake client will silently ignore a DeletionTimestamp on an object in a Create request, matching the behavior of the kube-apiserver
  • Unexport delegating logger, remove async init (#โ€‹2317)
    • log.DelegatingLogSink has been unexported, this logger should never be used on its own, and it's only meant to be used within controller-runtime initialization process.
    • Previously, when the pkg/log package was imported, there was an init function that spawned a goroutine, which set a null logger after 30 seconds. Now this logic has been removed, and instead incorporated into the delegating logger private implementation.
  • Change webhook request received / response written logs to log level 4 (#โ€‹2334)
  • Use and offer a single dynamic lazy RESTMapper (#โ€‹2116, #โ€‹2296)
    • The following options have been removed: WithCustomMapper, WithExperimentalLazyMapper, WithLazyDiscovery, WithLimiter.
    • The DynamicRESTMapperOption type has been removed.

โœจ New Features

  • Add cross-version compatibility with client-go 1.27 (#โ€‹2223)
  • Introduce pprof server to manager (#โ€‹1943)
    • To enable, use Manager.Options.PprofBindAddress.
  • Added interceptor client to intercept calls to a client (#โ€‹2248 #โ€‹2306)
  • Add reconcile.TerminalError(...) (#โ€‹2325)
    • By wrapping an error with the above package-level function, the controller won't retry the request again in an exponential backoff loop.
    • The error is logged, and the controller_runtime_terminal_reconcile_errors_total metric is incremented.

๐Ÿ› Bug Fixes

  • Use correct context to cancel "list and watch" & wait for all informers to complete (#โ€‹2121)
  • Client: use passed in Cache.DisableFor option (#โ€‹2303)
  • Fix race condition in channel source (#โ€‹2286)
  • ForceOwnership should work with subresources (#โ€‹2257)
  • Fix error string in CacheReader.List (#โ€‹2256)
  • Fix a bug in multinamespaced cache implementation (#โ€‹2252)
  • Allow lazy restmapper to work with CRDs created at runtime (#โ€‹2208)
  • Set DeleteStateUnknown in DeleteEvent when obj is DeletedFinalStateUnknown (#โ€‹2212)
  • Allow to set GracefulShutdownTimeout to -1, disabling timeouts (#โ€‹2169)
  • pkg/certwatcher: Start should retry for 10s when adding files (#โ€‹2160)
  • Don't share error concurrently in test (#โ€‹2158)

๐ŸŒฑ Others

๐ŸŒฑ Dependencies

๐Ÿ“– Additionally, there have been 4 contributions to our documentation and book. (#โ€‹2203, #โ€‹2201, #โ€‹2162, #โ€‹2170)

Thanks to all our contributors! ๐Ÿ˜Š

v0.14.7

[Compare Source](https://github.com/kuberne


Configuration

๐Ÿ“… Schedule: Branch creation - "before 4am 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.

๐Ÿ”• Ignore: Close this PR and you won't be reminded about this update again.


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

This PR has been generated by Mend Renovate. View repository job log here.

Copy link
Contributor Author

renovate bot commented Feb 12, 2024

โš  Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

โ™ป Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: downloading sigs.k8s.io/controller-runtime v0.17.2
go: downloading github.com/go-logr/logr v1.4.1
go: downloading github.com/onsi/gomega v1.30.0
go: downloading k8s.io/client-go v0.29.0
go: downloading sigs.k8s.io/yaml v1.4.0
go: downloading github.com/evanphx/json-patch/v5 v5.8.0
go: downloading k8s.io/apiextensions-apiserver v0.29.0
go: downloading go.uber.org/zap v1.26.0
go: downloading github.com/go-logr/zapr v1.3.0
go: downloading gomodules.xyz/jsonpatch/v2 v2.4.0
go: downloading golang.org/x/sys v0.16.0
go: downloading golang.org/x/oauth2 v0.12.0
go: downloading go.uber.org/multierr v1.11.0
go: downloading golang.org/x/exp v0.0.0-20220827204233-334a2380cb91
go: downloading k8s.io/component-base v0.29.0
go: downloading github.com/prometheus/client_golang v1.18.0
go: downloading github.com/fsnotify/fsnotify v1.7.0
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.4
go: github.com/redhat-cop/must-gather-operator/controllers tested by
	github.com/redhat-cop/must-gather-operator/controllers.test imports
	sigs.k8s.io/controller-runtime/pkg/envtest/printer: cannot find module providing package sigs.k8s.io/controller-runtime/pkg/envtest/printer

@renovate renovate bot force-pushed the renovate/sigs.k8s.io-controller-runtime-0.x branch from 6e38871 to e1ad7de Compare February 16, 2024 02:02
@renovate renovate bot changed the title Update module sigs.k8s.io/controller-runtime to v0.17.1 Update module sigs.k8s.io/controller-runtime to v0.17.2 Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants