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 controller-runtime to v0.10.1 #230

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

darkowlzz
Copy link
Contributor

Update controller-runtime to v0.10.0 and update the tests to be
compatible with the breaking changes.

In controller-runtime v0.10.0, the client is updated to clean any stale
data in the target object when performing any operation. This results in
test failure for the code that constructs an object with both spec and
status, and creates the object and updates status with the same
object. The fix is to set the status separately on the object before
updating it.
Refer: kubernetes-sigs/controller-runtime#1640

Also updates the tests to be compatible with the breaking changes in
controller-runtime > v0.10.0.

Signed-off-by: Sunny <darkowlzz@protonmail.com>
@darkowlzz darkowlzz mentioned this pull request Oct 1, 2021
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @darkowlzz

@hiddeco hiddeco merged commit 0c495d1 into fluxcd:reconcilers-dev Oct 8, 2021
@darkowlzz darkowlzz deleted the update-cr-v0.10.1 branch November 22, 2021 15:46
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.

None yet

3 participants