Wait for worker Node registration before applying labels #24134
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.63) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 766 lines diff across 15 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.14 · 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.397
Shallow Review Depth
shallow_review_depth
0.303
Real PR Conversation Timeline
1 comments
"Review active on #24134"
general
weight: 0.35
prezha
emmeowzing
What: Wait for a joined worker's exact Node object before applying Minikube labels. Fixes #24133.
Why: kubeadm can finish TLS bootstrap while Node registration is still pending. The current named-node label command runs before the later node wait and can fail with a transient Node
NotFound. This was discovered during the native VM work in #23809; the fix is independent of that feature.How: Add a read-only registration poll with a one-minute deadline. Retry a missing Node, timeout, unavailable service and throttling; return permanent failures immediately. Start the existing five-second labeling budget after registration. Preserve control-plane initialization and the later readiness check.
Validation: The exact pinned v1.39.0 installation and deterministic reproduction in #24133 were executed before posting, including the expected failure and patched success. The same regression fails on pristine master
61e410233d20e551ff1ec58895ef3d09051300ad. On the patched branch, the full kubeadm package passesgo test -race ./pkg/minikube/bootstrapper/kubeadm -count=1andgo vet ./pkg/minikube/bootstrapper/kubeadm. Local environment: macOS 27.0.1 arm64, Go 1.27.3. Hosted CI awaits upstream admission. Source-history findings and bounded duplicate searches are recorded in the issue.Prepared by Codex; contact: @emmeowzing. Ready for review as an independent bug fix.
<!-- witful-work-graph:begin -->
Containment shows ownership; arrows name recorded relationships.
Associated work:
<!-- witful-work-graph:end -->
Committed work graph.
<img src="https://raw.githubusercontent.com/astrivant/minikube/035034513bbfcec00665983e0980e9f945aecfed/.github/review-evidence/worker-registration/intent/c1d29200a5a29888d73d431d257473ae38239e5c1f601ebd4e2d8b99e85c1a1a/intent.png" alt="Changed-code intent coverage, with six uncovered files" width="90%">
Intent coverage is explicitly unavailable for this upstream checkout.
<img src="https://raw.githubusercontent.com/astrivant/minikube/035034513bbfcec00665983e0980e9f945aecfed/.github/review-evidence/worker-registration/files/files-001.png" alt="Changed text lines for all six source and work-graph files" width="100%">
<img src="https://raw.githubusercontent.com/astrivant/minikube/035034513bbfcec00665983e0980e9f945aecfed/.github/review-evidence/worker-registration/language/languages.png" alt="Changed text lines grouped by language" width="50%">
The figures measure added plus deleted text lines for source revision 8dede42. The root review-evidence directory is excluded before measurement.