mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
if ephemeral-storage not exist in initialCapacity, don't upgrade ephemeral-storage in node status
This commit is contained in:
parent
f44a8a4cac
commit
3f422d9784
@ -270,7 +270,9 @@ func MachineInfo(nodeName string,
|
|||||||
// capacity for every node status request
|
// capacity for every node status request
|
||||||
initialCapacity := capacityFunc()
|
initialCapacity := capacityFunc()
|
||||||
if initialCapacity != nil {
|
if initialCapacity != nil {
|
||||||
node.Status.Capacity[v1.ResourceEphemeralStorage] = initialCapacity[v1.ResourceEphemeralStorage]
|
if v, exists := initialCapacity[v1.ResourceEphemeralStorage]; exists {
|
||||||
|
node.Status.Capacity[v1.ResourceEphemeralStorage] = v
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user