-
Notifications
You must be signed in to change notification settings - Fork 137
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
Go: Update module sigs.k8s.io/controller-runtime to v0.16.0 #1800
Conversation
190d971
to
872e975
Compare
1705b49
to
b20cf10
Compare
b20cf10
to
b9eb04e
Compare
Known issue with |
I resolved conflicts locally and tried with
and still tests are failing around |
6139375
to
345adc2
Compare
15db4d9
to
be0477a
Compare
be0477a
to
5f15bf3
Compare
87c543e
to
c9e28bf
Compare
c9e28bf
to
87c543e
Compare
Edited/Blocked NotificationRenovate 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. |
This PR contains the following updates:
v0.14.6
->v0.16.0
Release Notes
kubernetes-sigs/controller-runtime (sigs.k8s.io/controller-runtime)
v0.16.0
Compare Source
Highlights
Changes since v0.15
✨ 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.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
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.