Merge pull request #119764 from linxiulei/reservedTypo
Fix error message for invalid resource reservation
This commit is contained in:
@@ -256,7 +256,7 @@ func (cm *containerManagerImpl) validateNodeAllocatable() error {
|
|||||||
value.Sub(v)
|
value.Sub(v)
|
||||||
|
|
||||||
if value.Sign() < 0 {
|
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]))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user