Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFromCronJob ¶ added in v0.7.0
NewFromCronJob creates a job from the CronJob template. If env is given, it injects the environment variables to all containers.
Types ¶
type Informer ¶
type Informer interface {
Shutdown()
}
func StartInformer ¶
func StartInformer( clientset kubernetes.Interface, namespace, jobName string, stopCh <-chan struct{}, finishedCh chan<- batchv1.JobConditionType, ) (Informer, error)
StartInformer starts an informer to receive the change of job resource. You must finally close stopCh to stop the informer. When the job is completed or failed, it is sent to finishedCh.
Click to show internal directories.
Click to hide internal directories.