utils

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMemoryQuantityToMib added in v0.9.0

func ConvertMemoryQuantityToMib(memoryQuantity resource.Quantity) (string, error)

Method to convert memory quantity to MiB string

func GetResourceLimitQuantity added in v0.9.0

func GetResourceLimitQuantity(pod *corev1.Pod, resourceName corev1.ResourceName) resource.Quantity

GetResourceLimitQuantity finds and returns the limit quantity for a specific resource.

func GetResourceRequest

func GetResourceRequest(pod *corev1.Pod, resource corev1.ResourceName) int64

GetResourceRequest finds and returns the request value for a specific resource.

func GetResourceRequestQuantity

func GetResourceRequestQuantity(pod *corev1.Pod, resourceName corev1.ResourceName) resource.Quantity

GetResourceRequestQuantity finds and returns the request quantity for a specific resource.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL