Skip to content

Bump controller-runtime to 0.7 and k8s.io dependencies to v.0.19.2 #542

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

Merged
merged 5 commits into from
Jan 6, 2021

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.

3 participants