• Kubernetes Submit Queue's avatar
    Merge pull request #48636 from jingxu97/July/allocatable · e623fed7
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 48636, 49088, 49251, 49417, 49494)
    
    Fix issues for local storage allocatable feature
    
    This PR fixes the following issues:
    1. Use ResourceStorageScratch instead of ResourceStorage API to represent
    local storage capacity
    2. In eviction manager, use container manager instead of node provider
    (kubelet) to retrieve the node capacity and reserved resources. Node
    provider (kubelet) has a feature gate so that storagescratch information
    may not be exposed if feature gate is not set. On the other hand,
    container manager has all the capacity and allocatable resource
    information.
    
    This PR fixes issue #47809
    e623fed7
predicates_test.go 109 KB