fix: add kubeadmRbac to soot triggers slice #1169
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 · 219 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.323
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #1169"
general
weight: 0.35
HarshavardhanK
Fixes #1167.
Root cause. Since kubeadm v1.29 (KEP-2305),
admin.confcarriesO=kubeadm:cluster-adminsinstead ofO=system:masters. The matchingkubeadm:cluster-admins → cluster-adminClusterRoleBinding is created byPhaseClusterAdminRBACin the soot manager. Two gaps prevent the CRB from being created quickly enough:1.
kubeadmRbac.TriggerChannelwas absent from thesootItem.triggersslice — so when the TCP reconciler notifies soot controllers,PhaseClusterAdminRBACwas never poked. It could only reconcile when akubeadm:*ClusterRoleBinding watch event fired, which never happens on a brand-new cluster.2. Even after adding the trigger, it only fires on subsequent TCP reconciles (when the manager is already in
sootMap). On initial startup the reconciler returnsRequeueAfter:time.Secondand exits — the CRB isn't created until the next TCP reconcile, leaving a 3–10 second window whereadmin.confcallers receive 403.Fix. Two changes, together closing the initial-creation window:
kubeadmRbac.TriggerChannelbuffered (cap 1). An unbuffered channel requires a live consumer; a pre-startup send would block until the manager goroutine starts consuming. Buffered lets the send succeed immediately.TriggerChannelwith one event immediately after launching the manager goroutine. When the soot manager's cache warms up,source.Channeldrains the buffer and enqueues a reconcile forkubeadmRbac, which callsEnsureAdminClusterRoleBindingand mints the CRB without waiting for an external event.The trigger in
sootItem.triggersis retained for drift correction: if the CRB is deleted on a running cluster, the next TCP reconcile re-triggersPhaseClusterAdminRBACand restores it.