Multi-cluster leader election: allow standby to sync and keep spec.resourceID #16432
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 297 lines diff across 3 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.341
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #16432"
general
weight: 0.35
lovelace-coder-bot
This pull request was generated by an AI coding agent.
Summary
In multi-cluster leader election setups, standby clusters were failing to sync
spec.resourceIDon resources whose ID is service-generated (such asMonitoringGroupand other DCL-based kinds). This led to:1. KRMSyncer remaining in
SyncFailed(Ready=False) on standby clusters due to the admission webhook rejecting updates to immutablespec.resourceID.2. A standby cluster that became leader creating duplicate resources in GCP because DCL controllers could not find an existing ID without
spec.resourceID.3.
spec.resourceIDflapping and repeatedly incrementing object generations when synced with both a status-only wildcard rule and per-kind rules under the same server-side apply field manager.Changes
pkg/webhook): Allowed the KRM syncer service account (system:serviceaccount:cnrm-system:kcc-syncer) to updatespec.resourceIDwhile continuing to strictly enforce all other immutable fields, container annotations, and IAM specifications.pkg/controller/kccmanager): Consolidated desired rules inStatusreplication mode to a single wildcard rule syncingstatusandspec.resourceID. Deletedpkg/controller/kccmanager/syncer_exceptions.go.pkg/k8s): Sharedk8s.SystemNamespaceandk8s.SyncerServiceAccountNameacrosspkg/webhookandpkg/cli/cmd/ha.pkg/webhook(TestWhoMaySetServiceGeneratedResourceID,TestSyncerCannotChangeOtherImmutableFields) and envtest integration tests inpkg/controller/kccmanager(TestStandbyKeepsLeaderResourceID), verifying that the standby receives and retainsspec.resourceIDacross reconciliations without changing generation.Fixes #16426
``
release-notespec.resourceIDMulti-cluster leader election: a standby cluster now gets the leader's
. Before, a standby that became the leader created a second resource for DCL-based kinds whose ID the service generates (for example MonitoringGroup), and the standby's KRMSyncer stayedSyncFailedwhile such an object existed.
``<sub>🤖 Agent session</sub>
<!-- factory:task-output kind=Change task=recipe-fix-20261125-022036-72a6 -->