-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated cherry pick of #120784: Use local isCgroup2UnifiedMode consistently #120924
Automated cherry pick of #120784: Use local isCgroup2UnifiedMode consistently #120924
Conversation
This change switches to using isCgroup2UnifiedMode locally to ensure that any mocked function is also used when checking the swap controller availability. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This change bypasses all logic to set swap in the linux container resources if a swap controller is not available on node. Failing to do so may cause errors in runc when starting a container with a swap configuration -- even if this is set to 0. Signed-off-by: Evan Lezar <elezar@nvidia.com>
/kind bug |
/approve |
@klueska: GitHub didn't allow me to request PR reviews from the following users: elezar. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/retest |
/triage accepted |
LGTM label has been added. Git tree hash: 220ebc834fea82b5d3b40c319dc289b90c1f98dc
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: klueska, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry pick of #120784 on release-1.28.
#120784: Use local isCgroup2UnifiedMode consistently
For details on the cherry pick process, see the cherry pick requests page.