mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Fix error message for invalid resource reservation
Signed-off-by: Eric Lin <exlin@google.com>
This commit is contained in:
parent
5b2167482d
commit
286628b030
@ -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