utils

package
v0.0.0-...-2f79454 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, fallback string) string

GetEnv takes in the environmental variable key and a fallback if the env var is absent then the fallback is returned or else the variable will be returned

func SetupLogger

func SetupLogger()

SetupLogger reads environmental variable and sets up logrus logger log level

func TrimPodTemplateHash

func TrimPodTemplateHash(pod *v1.Pod) string

TrimPodTemplateHash takes in a pod and tries to remove the pod template hash from the pod name. If no pod template hash is found then pod name is returned without any trimming

Types

This section is empty.

Jump to

Keyboard shortcuts

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