utils

package
v0.0.0-...-e91ad15 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Expanded object statuses only used in persistent layer.
	PodStopped = "Stopped"
	// JobStopped means the job has been stopped manually by user,
	// a job can be stopped only when job has not reached a final
	// state(Succeed/Failed).
	JobStopped apiv1.JobConditionType = "Stopped"
	// JobStopping is a intermediate state before truly Stopped.
	JobStopping apiv1.JobConditionType = "Stopping"
)

Variables

This section is empty.

Functions

func GenerateUserArenaClient

func GenerateUserArenaClient(loginUserName string) (*arenaclient.ArenaClient, error)

func GenerateUserKubeConfig

func GenerateUserKubeConfig(loginUserName string, namespace string) ([]byte, string, error)

func GetArenaJobTypeFromKind

func GetArenaJobTypeFromKind(kind string) types.TrainingJobType

func GetEnvOrDefault

func GetEnvOrDefault(key string, defaultVal string) string

func GetJobStatusFromArenaStatus

func GetJobStatusFromArenaStatus(status types.TrainingJobStatus) apiv1.JobConditionType

func GetJobStatusFromString

func GetJobStatusFromString(status string) apiv1.JobConditionType

func GetKindFromArenaJobType

func GetKindFromArenaJobType(typ types.TrainingJobType) string

func GetUserByName

func GetUserByName(name string) (user datav1.User, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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