helpers

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// PodNameFmt pod name format
	PodNameFmt = "%s-%s-%d"
)

Variables

This section is empty.

Functions

func GenPVCName

func GenPVCName(jobName string) string

GenPVCName generates pvc name with job name.

func GenRandomStr

func GenRandomStr(l int) string

GenRandomStr generate random str with specified length l.

func GetJobKeyByReq

func GetJobKeyByReq(req *apis.Request) string

GetJobKeyByReq gets the key for the job request.

func GetTaskIndex

func GetTaskIndex(pod *v1.Pod) string

GetTaskIndex returns task Index.

func MakePodName

func MakePodName(jobName string, taskName string, index int) string

MakePodName creates pod name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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