kube

package
v0.0.256 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureClusterRequirements

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

func GetPodLogs added in v0.0.256

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

func RunPod added in v0.0.256

func RunPod(ctx context.Context, client kubernetes.Interface, opts RunPodOptions) (*v1.Pod, 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
}

type RunPodOptions added in v0.0.256

type RunPodOptions struct {
	Namespace    string
	GenerateName string
	Image        string
	Env          []v1.EnvVar
}

Jump to

Keyboard shortcuts

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