← Back to Pull requests

ha status: report Config Connector managers that are not running #16467

Closed
unknown closed this pull request without merging on Nov 26, 2026 23:56 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 22:16 UTC
Author

This pull request was generated by an AI coding agent.

In namespaced mode, all managers of a cluster share the MultiClusterLease under 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 status did not inspect manager StatefulSets, so it reported the multi-cluster setup as HEALTHY while no cluster was reconciling that namespace.

This change updates ha status to check manager StatefulSets:
1. Extracts manager StatefulSet listing into listManagers on *clusterHandle and calls it during fetchClusterHAState, storing the results in clusterHAState.managers.
2. Adds managerProblems to check and report stopped or unready manager StatefulSets, identifying the namespace in namespaced mode via the cnrm.cloud.google.com/scoped-namespace label.
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 Long description to ha status explaining the checks and multi-cluster lease sharing in namespaced mode.
5. Adds test cases to status_checks_test.go covering all manager failure and healthy scenarios.

Fixes #16465

``release-note
config-connector ha status now 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 -->

Diff: 236 lines (+177 / -59) across 2 files Reviewer: lovelace-coder-bot Review duration: 1540m
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
0.60
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 60.4% (MEDIUM) · Higher = larger blast radius
60.4%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.8% · Safe to merge
23.8%