resource

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildResourceRequirements

func BuildResourceRequirements(cpuRequest, cpuLimit, memoryRequest, memoryLimit string) corev1.ResourceRequirements

BuildResourceRequirements constructs the core resource requirements structure based on specified resource requests and limits

func IsValidQuantity

func IsValidQuantity(quantityReference *string) bool

func IsValidQuantityValue

func IsValidQuantityValue(value string) bool

func MultiplyQuantity

func MultiplyQuantity(quantity resource.Quantity, val float64) *resource.Quantity

MultiplyQuantity multiplies resource quantity by the specified value and returns it in the original format

Types

This section is empty.

Jump to

Keyboard shortcuts

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