Skip to content

Conversation

@ChunyiLyu
Copy link
Contributor

@ChunyiLyu ChunyiLyu commented Jan 5, 2021

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

  • Bump controller-runtime to 0.7 and k8s.io dependencies to v.0.19.2, which is the version that controller runtime uses

There are some breaking changes in this new release of controller runtime and the following commits were to resolve these conflicts/breaking changes:

Additional Context

Release notes of controller runtime v0.7 has most of the breaking behaviors and necessary user actions documented: https://github.com/kubernetes-sigs/controller-runtime/releases

Local Testing

Have run unit, integration, and system tests

- controller runtime 0.7 has changed leaderlock from
ConfigMap to ConfigMapsLeasesResourceLock
- controller runtime helper functions use client.Object
in version 0.7
- Reconciler interface has changed in controller
runtime 0.7; Reconcile() takes an additional
context.Context, which can be used throughout
Reconcile() function.
- CreateOrUpdate() needs to in client.Client
explicitly
- started manager will be stopped when ctx is cancelled
Copy link
Contributor

@ferozjilla ferozjilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ChunyiLyu ChunyiLyu merged commit 6d2c66a into main Jan 6, 2021
@ChunyiLyu ChunyiLyu deleted the controller-runtime-0.7 branch January 6, 2021 11:07
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.

4 participants