mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Merge pull request #119764 from linxiulei/reservedTypo
Fix error message for invalid resource reservation
This commit is contained in:
commit
3c1356bc9b
@ -256,7 +256,7 @@ func (cm *containerManagerImpl) validateNodeAllocatable() error {
|
||||
value.Sub(v)
|
||||
|
||||
if value.Sign() < 0 {
|
||||
errors = append(errors, fmt.Sprintf("Resource %q has an allocatable of %v, capacity of %v", k, v, value))
|
||||
errors = append(errors, fmt.Sprintf("Resource %q has a reservation of %v but capacity of %v. Expected capacity >= reservation.", k, v, cm.capacity[k]))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user