← Back to Pull requests

workerconfig: stop forcing eventRecordQPS: 0 in the default kubelet config #8947

Open
unknown opened this pull request with 267 lines diff across 3 files
View on GitHub
unknown unknown commented on Dec 02, 2026 00:58 UTC
Author

Description

Fixes #8920.

The default worker profile that pkg/component/controller/workerconfig generates for every kubelet has been setting eventRecordQPS: 0 explicitly. Upstream Kubernetes changed the meaning of 0 in the kubelet configuration: kubernetes/kubernetes#117119 (milestone v1.37) made eventRecordQPS: 0 mean "no rate limiting", where previously 0 fell 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 eventRecordQPS into the generated KubeletConfiguration, 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 the default worker 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.37 as well, that can be done as a follow-up.

Type of change

  • Non-breaking change

  • Breaking change (must respect the version skew policy)
  • How has this been tested?

  • Manual test

  • Automated test added
  • go test ./pkg/component/controller/workerconfig/ -count=1 in a golang:1.27.3 container: PASS. TestReconciler_ResourceGeneration asserts the generated kubeletConfiguration ConfigMap data with assert.JSONEq against an expected config that no longer contains eventRecordQPS, 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 eventRecordQPS is absent from the rendered kubelet configuration, so the kubelet default applies.

    Checklist

  • This pull request follows the contributing guidelines

  • I have performed a self-review of my changes
  • Diff: 267 lines (+200 / -67) across 3 files Reviewer: twz123 Review duration: 2414m
    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
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 43.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.5% (MEDIUM) · Higher = larger blast radius
    62.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 35.7% · Moderate risk
    35.7%
    Repository