feat(cli): report leadership in ha status #16343
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 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.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16343"
general
weight: 0.35
acpana
BRIEF Change description
<!--
Describe what this pull request does.
If your pull request is to address an open issue, indicate it by specifying the
issue number:
If your pull request fixes an issue which has not been filed, please file the
issue and put the number here.
For example: "Fixes #858"
-->
Followup of #15370 and #16194
Add a ROLE column and a Lease line to
config-connector ha status, so it shows which cluster holds the multi-cluster lease.ROLE values:
Leader : the cluster holds the lease, so its Config Connector reconciles
Standby: another cluster holds the lease
Unknown: HA is configured, but the lease holder can't be determined
-: HA isn't configured, or the cluster couldn't be read
How the role is determined:
- Every cluster configured: the leader is the holder all clusters agree on (from the existing checks). If it can't be determined, every cluster is Unknown. This happens when a lease is missing, expired or has no holder, the clusters disagree, the holder isn't in --contexts, or the election settings don't match.
- Only some clusters configured: those clusters don't share an election with the rest, so each configured cluster's role comes from its own MultiClusterLease. It is Leader if it holds a live lease, Standby if another cluster does, and Unknown if its lease isn't live (the lease problem is listed).
The Lease line is shown whenever the leader is known, including on ERROR. It gives the lease and the leader, and when the leader last renewed it.
The problem reported for a cluster without HA, when other clusters have it, now explains the risk: that cluster reconciles independently of the HA clusters, so more than one cluster may change the same resources.
Examples:
WHY do we need this change?
Special notes for your reviewer:
Does this PR add something which needs to be 'release noted'?
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
-->
``
release-note`None
docs
Reviewer tagged PR with the actual milestone.
Run make ready-pr` to ensure this PR is ready for review.Intended Milestone
Please indicate the intended milestone.
Tests you have done
<!--
Make sure you have run "make ready-pr" to run required tests and ensure this PR is ready to review.
Also if possible, share a bit more on the tests you have done.
For example if you have updated the pubsubtopic sample, you can share the test logs from running the test case locally.
go test -v -tags=integration ./config/tests/samples/create -test.run TestAll -run-tests pubsubtopic
-->