helpers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GomaxprocsFromResource added in v0.4.0

func GomaxprocsFromResource(cpu *resource.Quantity) string

func ParsePartitionAnnotation

func ParsePartitionAnnotation(partition string) *int32

func PopulateEnv added in v0.4.0

func PopulateEnv(currentEnv []corev1.EnvVar, resources *corev1.ResourceRequirements, envKey string, partition int) []corev1.EnvVar

func PrettyPrintResources added in v0.4.0

func PrettyPrintResources(r *corev1.ResourceRequirements) string

func Ptr2Int32

func Ptr2Int32(i int32) *int32

func Ptr2Int64

func Ptr2Int64(i int64) *int64

func SetEnv added in v0.4.0

func SetEnv(env []corev1.EnvVar, key string, value string) []corev1.EnvVar

Types

This section is empty.

Jump to

Keyboard shortcuts

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