| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR improves the informer health check logic by removing the dependency on isWatching() from the getStatus() method in InformerWrapper. The health status is now determined solely by isRunning() && hasSynced(), which avoids false-unhealthy readings that could occur when isWatching() returns false transiently (e.g., during informer reconnection). The isWatching() method itself remains implemented and available in the InformerHealthIndicator interface for use by other consumers.
Changes:
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Sorry, something went wrong.
|
cc @shawkins pls take a look, based on the discussions and research, probably this is the best we can do. |
Sorry, something went wrong.
This is fine. It's effectively no different than it was prior to the update of the isWatching behavior. |
Sorry, something went wrong.
To my understanding is different in the terms that we won't have false health probe failures which would not be solved with controller restart. |
Sorry, something went wrong.
I mean this makes the behavior same as it used to be - as isWatching in older releases was effectively dominated by isWatching / hasSynced. |
Sorry, something went wrong.
|
Maybe we could have some other nice runtime information for liveness probes in the future like the reconcile executor service related checks on, but those are already covered by metrics. Will think about it. |
Sorry, something went wrong.
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
Signed-off-by: Attila Mészáros <a_meszaros@apple.com>
| Back | FazBrowse Home | New Git URL |
See linked issue for details.
Signed-off-by: Attila Mészáros a_meszaros@apple.com