package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
ExtractContainerResourceValue extracts the value of a resource in an already known container.
ExtractResourceValueByContainerName extracts the value of a resource by providing container name.
ExtractResourceValueByContainerNameAndNodeAllocatable extracts the value of a resource by providing container name and node allocatable.
GetResourceRequest finds and returns the request value for a specific resource.
GetResourceRequestQuantity finds and returns the request quantity for a specific resource.
IsHugePageResourceName returns true if the resource name has the huge page resource prefix.
MergeContainerResourceLimits checks if a limit is applied for the container, and if not, it sets the limit to the passed resource list.