Bugfix to check overcommit for hugepages.
This commit is contained in:
parent
9aef242a4c
commit
3e8a8286d8
@ -88,9 +88,10 @@ func OpaqueIntResourceName(name string) v1.ResourceName {
|
||||
var overcommitBlacklist = sets.NewString(string(v1.ResourceNvidiaGPU))
|
||||
|
||||
// IsOvercommitAllowed returns true if the resource is in the default
|
||||
// namespace and not blacklisted.
|
||||
// namespace and not blacklisted and is not hugepages.
|
||||
func IsOvercommitAllowed(name v1.ResourceName) bool {
|
||||
return IsDefaultNamespaceResource(name) &&
|
||||
!IsHugePageResourceName(name) &&
|
||||
!overcommitBlacklist.Has(string(name))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user