Merge pull request #119764 from linxiulei/reservedTypo

Fix error message for invalid resource reservation
This commit is contained in:
Kubernetes Prow Robot 2023-12-13 21:25:42 +01:00 committed by GitHub
commit 3c1356bc9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]))
}
}