kube

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 22 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 apkube.Factory) (bool, error)

func DeleteSecretWithFinalizer added in v0.0.555

func DeleteSecretWithFinalizer(ctx context.Context, kubeFactory apkube.Factory, secret *v1.Secret) error

func EnsureClusterRequirements

func EnsureClusterRequirements(ctx context.Context, opts ClusterRequirementsOptions) error

func GetClientSet added in v0.1.21

func GetClientSet(kubeFactory apkube.Factory) (kubernetes.Interface, error)

func GetClientSetOrDie added in v0.1.21

func GetClientSetOrDie(kubeFactory apkube.Factory) kubernetes.Interface

func GetClusterSecret added in v0.0.283

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

func GetDynamicClientOrDie added in v0.1.52

func GetDynamicClientOrDie(kubeFactory apkube.Factory) dynamic.Interface

func GetIngressClass added in v0.1.43

func GetIngressClass(ctx context.Context, kubeFactory apkube.Factory, name string) (*netv1.IngressClass, error)

func GetSecretsWithLabel added in v0.0.555

func GetSecretsWithLabel(ctx context.Context, kubeFactory apkube.Factory, namespace, label string) (*v1.SecretList, error)

func GetValueFromSecret added in v0.1.43

func GetValueFromSecret(ctx context.Context, kubeFactory apkube.Factory, namespace, name, key string) (string, error)

func WaitForJob added in v0.0.380

func WaitForJob(ctx context.Context, kubeFactory apkube.Factory, ns, jobName string) error

Types

type ClusterRequirementsOptions added in v0.0.540

type ClusterRequirementsOptions struct {
	KubeFactory        apkube.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