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

update the capacity to zero on shutdown/reset #502

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 21, 2023

  1. update the capacity to zero on shutdown/reset

    When the device plugin is restarted, kubelet marks the resource as unhealthy, but still reports the resource as existing for a grace period (5 mins). If a pod is scheduled before the device plugin comes up, the pod create fails without a retryloop with an error message Pod was rejected: Allocate failed due to no healthy devices present; cannot allocate unhealthy devices <DEVICE_NAME>, which is unexpected.
    
    This commit allow the device plugin to send an empty list of devices before the reset or shutdown
    
    Signed-off-by: Sebastian Sch <[email protected]>
    SchSeba committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    c1a6852 View commit details
    Browse the repository at this point in the history