workerconfig: stop forcing eventRecordQPS: 0 in the default kubelet config #8947
All Vouch review confidence checks passed
Residual risk 0.36 = Change Risk (0.63) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 267 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.334
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #8947"
general
weight: 0.35
twz123
Description
Fixes #8920.
The default worker profile that
pkg/component/controller/workerconfiggenerates for every kubelet has been settingeventRecordQPS: 0explicitly. Upstream Kubernetes changed the meaning of0in the kubelet configuration: kubernetes/kubernetes#117119 (milestone v1.37) madeeventRecordQPS: 0mean "no rate limiting", where previously0fell back to the kubelet default. k0s now ships the 1.37 kubelet, so every k0s worker silently runs with event rate limiting disabled.This PR stops writing
eventRecordQPSinto the generatedKubeletConfiguration, leaving the field unset so the kubelet applies its own default (50 events per second, burst 100). Users who want a specific value can still set it through thedefaultworker profile. This matches the direction discussed on the issue: following the kubelet's own default avoids the value silently changing meaning again if upstream revisits it.Deliberately left out: no backport branches are included here; if maintainers want this on
release-1.37as well, that can be done as a follow-up.Type of change
How has this been tested?
go test ./pkg/component/controller/workerconfig/ -count=1in agolang:1.27.3container: PASS.TestReconciler_ResourceGenerationasserts the generatedkubeletConfigurationConfigMap data withassert.JSONEqagainst an expected config that no longer containseventRecordQPS, so the suite now fails if the field is ever emitted again.go vet ./pkg/component/controller/workerconfig/: clean.gofmt -l pkg/component/controller/workerconfig/: clean.To verify manually: generate the worker config on a cluster and check that
eventRecordQPSis absent from the rendered kubelet configuration, so the kubelet default applies.Checklist