Closed olix0r closed 3 days ago
Reconciliation logs have been improved so that we log the number of resources being inspected, as well as the total patches in a reconciliation. Tracing contexts are set so we know which resource is being updated.
The awkward "Lease non-holder skipping controller update" DEBUG messages have been consolidated in a helper as
fn reconcile_if_leader(&self) {
let lease = self.claims.borrow();
if !lease.is_current_for(&self.name) {
tracing::trace!(%lease.holder, "Reconcilation skipped");
return;
}
self.reconcile();
}
note that two ci jobs appear to be failing, my understanding is that these are known to be flaky.
There are a few things about the policy controller logging that can be cleaned up for consistency and clarity:
The "Lease holder has changed" message actually indicates that the lease has changed, though the holder may be unchanged.
To improve logging clarity, this change does the following: