Update module sigs.k8s.io/controller-runtime to v0.15.0 - autoclosed #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.14.6
->v0.15.0
Release Notes
kubernetes-sigs/controller-runtime (sigs.k8s.io/controller-runtime)
v0.15.0
Compare Source
Controller Runtime v0.15
Changes since v0.14.5
*http.Client
configurable and use/share the same client by default (#2122)client/apiutil.NewDynamicRESTMapper
signature has changed and now requires an*http.Client
as parameter.cluster.Cluster
interface requiresGetHTTPClient()
method which must return an already configured, non-nil,*http.Client
for the Cluster. When usingcluster.New
to create Clusters, the client is created internally if not specified as anOptions
field.cluster.Options.MapperProvider
field now requires a*rest.Config
and*http.Client
.config/v1alpha1
types (#2149, #2200)Manager.Options
directly.pkg/inject
has been removed, this package contained long deprecated injection functions (likeInjectScheme
,InjectLogger
,InjectConfig
,InjectClient
,InjectCache
, etc.).Manager
to structs or interfaces that need them.builder
package capabilities and general UX (#2135)builder.Builder.Watches
signature has changed, it now takes aclient.Object
instead of asource.Source
as first argument.source.Source
, useWatchesRawSource
.builder.Builder.WatchesMetadata
has been added to simplify watchingPartialObjectMetadata
objects.cache.Options.Namespace
has been removed in favor ofcache.Options.Namespaces
, a slice.cache.Options.Resync
has been renamed toSyncPeriod
.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.[..]ByObject
field have been refactored:cache.Options.SelectorsByObject
has been removed, usecache.Options.ByObject[Object].Field
andcache.Options.ByObject[Object].Label
cache.Options.UnsafeDisableDeepCopyByObject
has been removed, usecache.Options.ByObject[Object].UnsafeDisableDeepCopy
.cache.Options.TransformByObject
has been removed, usecache.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.handler.EventHandler
andhandler.Funcs
interfaces requirecontext.Context
as the first parameter for every method.handler.MapFunc
signature has changed and now requires acontext.Context
.client.Client
interface now requires and exposes these helper functions:GroupVersionKindFor(Object)
which returns theschema.GroupVersionKind
for the object.IsObjectNamespaced(Object)
which returnstrue
if the object's GroupVersionKind is namespaced, orfalse
for global ones.client.New
(#2150)client.NewDelegatingClient
constructor andclient.NewDelegatingClientInput
struct have been removed.client.New
and setclient.Options.Cache
to customize the client's caching behavior.cluster.NewClientFunc
has been moved toclient.NewClientFunc
.cluster.ClientOptions
has been removed.cluster.DefaultNewClient
has been removed.cluster.ClientBuilderWithOptions
has been removed.manager.Options.Cache
is now the preferred way to customize the cache options for the manager.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.manager.Options.NewClient
, which has now been marked as a low level primitive.manager.Options.SyncPeriod
has been deprecated in favor ofmanager.Options.Cache.SyncPeriod
.manager.Options.Namespace
has been deprecated in favor ofmanager.Options.Cache.Namespaces
.manager.Options.DryRunClient
has been deprecated in favor ofmanager.Options.Client.DryRun
.manager.Options.ClientDisableCacheFor
has been deprecated in favor ofmanager.Options.Client.Cache.DisableCacheFor
.manager.WebhookServer
instead.manager.Options.Port
manager.Options.Host
manager.Options.CertDir
manager.Options.TLSOpts
cache.BuilderWithOptions
(#2300)webhook/conversion
, removewebhook/admission.GetDecoder()
(#2144)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 usewebhook/conversion.NewWebhookHandler
instead.pkg/webhook/admission
:Result.Message
instead ofResult.Reason
(#1539)Validator
andCustomValidator
interfaces have been modified to allow returning warnings (#2014)WithStatusSubresource
option and pre-populating it withall in-tree resources that have a status subresource
Update
andPatch
methods now don't change the status for any suchresource anymore
Update
andPatch
methods now only change the statusfor any such resource
rest_client_request_latency_seconds
rest_client_request_duration_seconds
rest_client_request_size_bytes
rest_client_response_size_bytes
webhook.Server
struct is now an interfacewebhook.NewServer
can be used to pass in and customize the default serverlog.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.pkg/log
package was imported, there was aninit
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.WithCustomMapper
,WithExperimentalLazyMapper
,WithLazyDiscovery
,WithLimiter
.DynamicRESTMapperOption
type has been removed.✨ New Features
Manager.Options.PprofBindAddress
.reconcile.TerminalError(...)
(#2325)controller_runtime_terminal_reconcile_errors_total
metric is incremented.🐛 Bug Fixes
🌱 Others
NewDynamicRESTMapper
(#2178)🌱 Dependencies
📖 Additionally, there have been 4 contributions to our documentation and book. (#2203, #2201, #2162, #2170)
Thanks to all our contributors! 😊
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
This PR has been generated by Mend Renovate. View repository job log here.