Conversation
This commit refactores the probe initialization to use a Hive Job instead of a plain lifecycle start hook. This way we can also get rid of the raw Go routine to execute the check if every probe successfully executed at least once before exposing the status. Note: the kvstore "shutdown check" is still part of its own lifecycle stop hook. Probably better to eventually move this to the kvstore module. Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
PR_044
PR Type
Enhancement
Description
Refactor probe initialization to use Hive Job instead of lifecycle hook
Replace raw Go routine with managed job execution for probe checks
Simplify health reporting by removing Health scope dependency
Improve context management with proper timeout handling
Diagram Walkthrough
File Walkthrough
cell.go
Convert probe initialization to Hive Job patternpkg/status/cell.go
context,fmt, andjobpackagescell.Healthdependency withjob.Groupin statusParamslifecycle hook
call
status_collector.go
Remove legacy probe startup implementationpkg/status/status_collector.go
startStatusCollector()method entirely