kube

package
v0.0.257 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteJob added in v0.0.257

func DeleteJob(ctx context.Context, client kubernetes.Interface, job *batchv1.Job) error

func EnsureClusterRequirements

func EnsureClusterRequirements(ctx context.Context, kubeFactory kube.Factory, namespace string) error

func GetPodByJob added in v0.0.257

func GetPodByJob(ctx context.Context, client kubernetes.Interface, job *batchv1.Job) (*v1.Pod, error)

func GetPodLogs added in v0.0.256

func GetPodLogs(ctx context.Context, client kubernetes.Interface, namespace, name string) (string, error)

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
}

Jump to

Keyboard shortcuts

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