-
Notifications
You must be signed in to change notification settings - Fork 594
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 Flux components to Kubernetes controller-runtime v0.15 #3907
Labels
umbrella-issue
Umbrella issue for tracking progress of a larger effort
Comments
stefanprodan
added
the
umbrella-issue
Umbrella issue for tracking progress of a larger effort
label
May 23, 2023
This was referenced May 23, 2023
This was referenced May 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update the GitOps Toolkit packages and the Flux controllers to Kubernetes 1.27, controller-runtime v0.15 and controller-gen v0.12.
Adapt the controller code to the breaking changes introduced in controller-runtime v0.15:
Watches
require a plainclient.Object
instead of asource.Kind
object.handler.MapFunc
requires a Go context.ctrlcache.Options.SelectorByObject
was renamed toctrlcache.Options.ByObject
.ctrl.Options.Namespace
was moved toctrlcache.Options.Namespaces
.ctrl.Options.ClientDisableCacheFor
was moved toctrlclient.CacheOptions.DisableFor
.ctrl.Options.Port
has been deprecated and removed.WithStatusSubresource
to enable the correct behavior for status updates and patches.TODOs:
The text was updated successfully, but these errors were encountered: