Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreAllJobsCompleted ¶
AreAllJobsCompleted will return true if all jobs with a common prefix in a given namespace are in a Completed State
func WaitOnDeleted ¶ added in v0.36.0
WaitOnDeleted returns when a job is successfully deleted
Types ¶
type Job ¶
type Job struct {
Metadata pod.Metadata `json:"metadata"`
Spec Spec `json:"spec"`
Status Status `json:"status"`
}
Job is used to parse data from kubectl get jobs
func CreateJobFromFile ¶
CreateJobFromFile will create a Job from file with a name
func CreateJobFromFileDeleteIfExists ¶ added in v0.36.0
CreateJobFromFileDeleteIfExists will create a Job from file, deleting any pre-existing job with the same name
func GetAllByPrefix ¶ added in v0.36.0
GetAllByPrefix will return all jobs in a given namespace that match a prefix
type List ¶
type List struct {
Jobs []Job `json:"items"`
}
List is a container that holds all jobs returned from doing a kubectl get jobs