OCPNODE-3747: Disable Swap mode in Kubelet and enable drop-in directory #5294
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.65) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.65 · 324 lines diff across 4 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.346
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.065
Real PR Conversation Timeline
1 comments
"Review active on #5294"
general
weight: 0.35
fabiand
<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
"Closes: #xxxx"
Please provide the following information:
-->
Fixes: https://issues.redhat.com/browse/OCPNODE-3747
Context:
With the release of 1.34 version of Kubernetes swap feature in Kubelet is GAed. This means that, customer can set FailSwapOn to false and SwapBehavior to LimitedSwap. OpenShift 4.21 is currently planned to adopt 1.34 version of Kubernetes. Hence users of OpenShift 4.21 and above are impacted by this upstream release of swap feature.
- What I did
1. Ensure that FailSwapOn and MemorySwap.SwapBehavior cannot be set by users of OpenShift
2. Ensure that FailSwapOn is set to false on worker nodes and true on all other types of nodes. MemorySwap.SwapBehavior is always set to "NoSwap"
3. Ensure that drop-in directory is enabled on the worker node kubelet so that CNV team can use it to set swapBehavior (won't be documented for external users)
- How to verify it
While this was tested the following PR was also required: https://github.com/openshift/api/pull/2494 (Merged already)
The cluster bot command was:
Checked the output of configz
Note to reviewer
Unit tests are included. The end-to-end (E2E) tests will be added to the origin repository, as defined by the work items in the Epic: OCPNODE-3646.
I've chosen the origin repository to ensure maintain consistency with other node features (ex: image volume).
- Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->
Disables openshift users to use swap mode on the Kubelet