baseutils

package
v0.0.8-internal Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultNamespace = GetEnv("DEFAULT_WORKLOAD_NAMESPACE", "kaiwo")
	DefaultRayImage  = GetEnv("DEFAULT_WORKLOAD_IMAGE", "ghcr.io/silogen/rocm-ray:v0.8")
)

Functions

func FormatNameWithPostfix

func FormatNameWithPostfix(name string, postfix string) string

func GetCurrentUser

func GetCurrentUser() (string, error)

func GetEnv

func GetEnv(key, defaultValue string) string

func MakeRFC1123Compliant

func MakeRFC1123Compliant(input string) string

func SanitizeStringForKubernetes

func SanitizeStringForKubernetes(str 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