mirror of https://github.com/k3s-io/k3s
if ephemeral-storage not exist in initialCapacity, don't upgrade ephemeral-storage in node status
parent
f44a8a4cac
commit
3f422d9784
|
@ -270,7 +270,9 @@ func MachineInfo(nodeName string,
|
|||
// capacity for every node status request
|
||||
initialCapacity := capacityFunc()
|
||||
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