kube

package
v0.0.540 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 18 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, opts ClusterRequirementsOptions) 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 ClusterRequirementsOptions added in v0.0.540

type ClusterRequirementsOptions struct {
	KubeFactory        kube.Factory
	Namespace          string
	ContextUrl         string
	AccessMode         platmodel.AccessMode
	TunnelRegisterHost string
	IsCustomInstall    bool
}

type LaunchJobOptions added in v0.0.228

type LaunchJobOptions struct {
	Client        kubernetes.Interface
	Namespace     string
	ContainerName string
	GenerateName  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