helpers

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TimeLayout = time.RFC3339
)

Variables

This section is empty.

Functions

func CmpResourceRequirements added in v0.4.1

func CmpResourceRequirements(old corev1.ResourceRequirements, new corev1.ResourceRequirements) int

func GomaxprocsFromResource added in v0.4.0

func GomaxprocsFromResource(cpu *resource.Quantity) string

func ParsePartitionAnnotation

func ParsePartitionAnnotation(partition string) (int32, error)

func ParseTimeAnnotation added in v0.4.1

func ParseTimeAnnotation(ts string) (time.Time, error)

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