Documentation ¶
Index ¶
- func DeleteJob(ctx context.Context, client kubernetes.Interface, job *batchv1.Job) error
- func EnsureClusterRequirements(ctx context.Context, kubeFactory kube.Factory, namespace string) error
- func GetPodByJob(ctx context.Context, client kubernetes.Interface, job *batchv1.Job) (*v1.Pod, error)
- func GetPodLogs(ctx context.Context, client kubernetes.Interface, namespace, name string) (string, error)
- func LaunchJob(ctx context.Context, client kubernetes.Interface, opts LaunchJobOptions) (*batchv1.Job, error)
- type LaunchJobOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPodByJob ¶ added in v0.0.257
func GetPodLogs ¶ added in v0.0.256
func LaunchJob ¶ added in v0.0.228
func LaunchJob(ctx context.Context, client kubernetes.Interface, opts LaunchJobOptions) (*batchv1.Job, error)
Types ¶
type LaunchJobOptions ¶ added in v0.0.228
type LaunchJobOptions struct { Client kubernetes.Interface Namespace string JobName *string Image *string Env []v1.EnvVar RestartPolicy v1.RestartPolicy BackOffLimit int32 }
Click to show internal directories.
Click to hide internal directories.