• Kubernetes Submit Queue's avatar
    Merge pull request #57266 from vikaschoudhary16/unhealthy_device · f2e46a21
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Handle Unhealthy devices
    
    Update node capacity with sum of both healthy and unhealthy devices.
    Node allocatable reflect only healthy devices.
    
    
    
    **What this PR does / why we need it**:
    Currently node capacity only reflects healthy devices. Unhealthy devices are ignored totally while updating node status. This PR handles unhealthy devices while updating node status. 
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes #57241
    
    **Special notes for your reviewer**:
    
    **Release note**:
    <!--  Write your release note:
    Handle Unhealthy devices
    
    ```release-note
    Handle Unhealthy devices
    ```
    /cc @tengqm @ConnorDoyle @jiayingz @vishh @jeremyeder @sjenning @resouer @ScorpioCPH @lichuqiang @RenaudWasTaken @balajismaniam 
    
    /sig node
    f2e46a21
kubelet_node_status.go 36 KB