gardener / machine-controller-manager

Declarative way of managing machines for Kubernetes cluster
Apache License 2.0
256 stars 117 forks source link

Reduce noisy reconciles + enhance logs #877

Closed himanshu-kun closed 9 months ago

himanshu-kun commented 10 months ago

What this PR does / why we need it:

This PR does the following:

Some other minor changes have been made as well.

Overall the PR reduces the number of object has been modified... occurrences which saves CPU cycles and improves readability. For any unavoidable occurrences, quick retry is done to update the machine/node object.

Which issue(s) this PR fixes: Fixes #767 Fixes #838

Special notes for your reviewer:

With these changes machine reconcile couldn't be triggered by annotating the machine object now. A restart of MCM or spec update would be needed to trigger it.

Release note:

machine controller won't reconcile machine on non-spec update events
rishabh-11 commented 9 months ago

/lgtm