kube

package
v0.0.502 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNamespaceExists added in v0.0.263

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

func EnsureClusterRequirements

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

func GetClusterSecret added in v0.0.283

func GetClusterSecret(ctx context.Context, kubeFactory kube.Factory, namespace string, name string) (*v1.Secret, error)

func WaitForJob added in v0.0.380

func WaitForJob(ctx context.Context, f kube.Factory, ns, jobName string) 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