Help us shape the future of Go! Take the 2026 Go Developer Survey

alias

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerResources

func ContainerResources(reqCPU, reqMEM, limCPU, limMEM string) *k8s.ResourceRequirements

ContainerResources container resource requirements

func ConvertLabels

func ConvertLabels(labels []string) (*map[string]*string, error)

func EnvVarStr

func EnvVarStr(k, v string) *k8s.EnvVar

EnvVarStr quick shortcut for string/string key/value var

func MustChartEnvVarsFromStruct

func MustChartEnvVarsFromStruct(prefix string, defaults interface{}, s interface{}) *[]*k8s.EnvVar

MustChartEnvVarsFromStruct parses typed configs into manifest env vars

func Num

func Num(value float64) *float64

func ShortDur

func ShortDur(d time.Duration) *string

ShortDur is a helper method for kube-janitor duration format

func Str

func Str(value string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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