package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-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.
MergeContainerResourceLimits checks if a limit is applied for the container, and if not, it sets the limit to the passed resource list.
PodRequestsAndLimits returns a dictionary of all defined resources summed up for all containers of the pod.