k8s

package
v2.5.6 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultDeploymentManager

func NewDefaultDeploymentManager(k8sClient client.Client, logger logr.Logger) *defaultDeploymentManager

NewDefaultDeploymentManager constructs new DeploymentManager

func NewDefaultIngressManager

func NewDefaultIngressManager(k8sClient client.Client, logger logr.Logger) *defaultIngressManager

NewDefaultIngressManager constructs new IngressManager.

func NewDefaultNamespaceManager

func NewDefaultNamespaceManager(k8sClient client.Client, logger logr.Logger) *defaultNamespaceManager

NewDefaultNamespaceManager constructs new defaultNamespaceManager.

func NewDefaultServiceManager

func NewDefaultServiceManager(k8sClient client.Client, logger logr.Logger) *defaultServiceManager

NewDefaultServiceManager constructs new ServiceManager.

Types

type DeploymentManager

type DeploymentManager interface {
	WaitUntilDeploymentReady(ctx context.Context, dp *appsv1.Deployment) (*appsv1.Deployment, error)
	WaitUntilDeploymentDeleted(ctx context.Context, dp *appsv1.Deployment) error
}

DeploymentManager is responsible for deployment resources.

type IngressManager

type IngressManager interface {
	WaitUntilIngressReady(ctx context.Context, ing *networking.Ingress) (*networking.Ingress, error)
	WaitUntilIngressDeleted(ctx context.Context, ing *networking.Ingress) error
}

IngressManager is responsible for Ingress resources.

type NamespaceManager

type NamespaceManager interface {
	AllocateNamespace(ctx context.Context, baseName string) (*corev1.Namespace, error)
	WaitUntilNamespaceDeleted(ctx context.Context, ns *corev1.Namespace) error
}

NamespaceManager is responsible for namespace resources.

type ServiceManager

type ServiceManager interface {
	WaitUntilServiceActive(ctx context.Context, svc *corev1.Service) (*corev1.Service, error)
	WaitUntilServiceDeleted(ctx context.Context, svc *corev1.Service) error
}

ServiceManager is responsible for Service resources.

Jump to

Keyboard shortcuts

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