Skip to content
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

only configure swap if swap is enabled #120784

Merged

Commits on Sep 21, 2023

  1. Use local isCgroup2UnifiedMode consistently

    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>
    elezar committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    d3d1827 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2023

  1. Only configure swap if available on node

    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>
    elezar committed Sep 26, 2023
    Configuration menu
    Copy the full SHA
    394bcaf View commit details
    Browse the repository at this point in the history