← Back to Pull requests

OCPNODE-4487: replace --system-reserved flags with config drop-in #6044

Closed
unknown closed this pull request without merging on Jun 10, 2026 16:35 UTC
View on GitHub
unknown unknown commented on May 14, 2026 12:37 UTC
Author

<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
"Closes: #xxxx"

Please provide the following information:
-->

- What I did

Remove EnvironmentFile=/etc/node-sizing.env and the --system-reserved command-line flag from kubelet.service. The auto-sizing script (dynamic-system-reserved-calc.sh) now writes a KubeletConfiguration drop-in file to /etc/openshift/kubelet.conf.d/20-auto-sizing.conf, which kubelet reads via --config-dir flag. Add --config-dir to master and arbiter kubelet.service for consistency with workers.

- How to verify it

  • go test ./pkg/controller/kubelet-config/... -v passes

  • go test ./pkg/controller/template/... -v passes (verifies --config-dir is present on all node roles)

  • e2e test TestKubeletAutoSizingDropIn verifies the auto-sizing drop-in exists with systemReserved values
  • - Description for the changelog
    <!--
    Write a short (one line) summary that describes the changes in this
    pull request for inclusion in the changelog:
    -->
    Kubelet now receives systemReserved values via a KubeletConfiguration drop-in instead of --system-reserved command-line flags.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Refactor
    Kubelet now loads system-reserved settings from an OpenShift kubelet config drop-in directory (created at startup) instead of embedding them on the command line or using an external node-sizing env file; unit templates stop sourcing the old env file and adjust environment sources.

    Tests
    New e2e test verifies the kubelet auto-sizing drop-in exists on nodes and contains systemReserved settings.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 222 lines (+166 / -56) across 2 files Reviewer: nispriha Review duration: 39118m
    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 · 222 lines diff across 2 files
    0.60
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    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 #6044"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 60.0% (MEDIUM) · Higher = larger blast radius
    60.0%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 23.7% · Safe to merge
    23.7%