• Jing Xu's avatar
    Fix issues for local storage allocatable feature · bb1920ed
    Jing Xu authored
    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.
    bb1920ed
types.go 6.09 KB