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 Flux components to Kubernetes controller-runtime v0.15 #3907

Closed
7 tasks done
stefanprodan opened this issue May 23, 2023 · 0 comments
Closed
7 tasks done

Update Flux components to Kubernetes controller-runtime v0.15 #3907

stefanprodan opened this issue May 23, 2023 · 0 comments
Assignees
Labels
umbrella-issue Umbrella issue for tracking progress of a larger effort

Comments

@stefanprodan
Copy link
Member

stefanprodan commented May 23, 2023

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 plain client.Object instead of a source.Kind object.
  • handler.MapFunc requires a Go context.
  • ctrlcache.Options.SelectorByObject was renamed to ctrlcache.Options.ByObject.
  • ctrl.Options.Namespace was moved to ctrlcache.Options.Namespaces.
  • ctrl.Options.ClientDisableCacheFor was moved to ctrlclient.CacheOptions.DisableFor.
  • ctrl.Options.Port has been deprecated and removed.
  • Fake clients used in tests must be configured using WithStatusSubresource to enable the correct behavior for status updates and patches.

TODOs:

  • fluxcd/pkg (pkg/#534 pkg/#567)
  • source-controller
  • kustomize-controller
  • notification-controller
  • helm-controller
  • image-reflector-controller
  • image-automation-controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
umbrella-issue Umbrella issue for tracking progress of a larger effort
Projects
None yet
Development

No branches or pull requests

3 participants