(fleet) add Fleet daemon boilerplate #2670
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 172 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.308
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2670"
general
weight: 0.35
arbll
Summary
This PR introduces
pkg/fleet.Daemon, a placeholder for the Fleet daemon that will later power operator configuration changes driven by Fleet automation.Motivation
Fleet will need a long-running process inside the operator to receive and apply configuration updates. This PR lays the foundation by wiring up a minimal daemon that integrates cleanly with the operator lifecycle.
Implementation
pkg/fleet/daemon.go: newDaemonstruct implementingmanager.Runnableandmanager.LeaderElectionRunnable, following the same pattern asHelmMetadataForwarder.Start()blocks onctx.Done()for clean shutdown;NeedLeaderElection()returnstrueso it only runs on the elected leader.cmd/main.go: registers the daemon via a newsetupFleetDaemonhelper, gated behind the existingremoteConfigEnabledflag. The daemon receives its ownRemoteConfigUpdaterinstance (consistent with how the existing RC updater is created today).Tradeoffs
remoteConfigEnabledcouples Fleet to RC for now; this can be split into its own flag later if needed.