ha status: report Config Connector managers that are not running #16467
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 236 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.327
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #16467"
general
weight: 0.35
lovelace-coder-bot
This pull request was generated by an AI coding agent.
In namespaced mode, all managers of a cluster share the
MultiClusterLeaseunder the cluster's identity (setUpMultiClusterLease). If the manager of one namespace is scaled to 0 or not ready on the leader, leadership does not move to the standby cluster because other managers on the leader continue renewing the lease. Previously,config-connector ha statusdid not inspect manager StatefulSets, so it reported the multi-cluster setup asHEALTHYwhile no cluster was reconciling that namespace.This change updates
ha statusto check manager StatefulSets:1. Extracts manager StatefulSet listing into
listManagerson*clusterHandleand calls it duringfetchClusterHAState, storing the results inclusterHAState.managers.2. Adds
managerProblemsto check and report stopped or unready manager StatefulSets, identifying the namespace in namespaced mode via thecnrm.cloud.google.com/scoped-namespacelabel.3. Formats problem lines with specific reasons (scaled to 0, stopped by
ha failover, unready pods, unobserved generation) and consequences for leader vs. standby and namespaced vs. cluster mode.4. Adds a
Longdescription toha statusexplaining the checks and multi-cluster lease sharing in namespaced mode.5. Adds test cases to
status_checks_test.gocovering all manager failure and healthy scenarios.Fixes #16465
``
release-note
config-connector ha statusnow reports a Config Connector manager that is not running. In namespaced mode it names the namespace: while the manager of a namespace is down on the leader, no cluster reconciles that namespace.
``<sub>🤖 Agent session</sub>
<!-- factory:task-output kind=Change task=recipe-fix-20261125-215246-cfdf -->