kubernetes

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker struct {
	// contains filtered or unexported fields
}

HealthChecker implements Check

func NewHealthChecker

func NewHealthChecker(namespaces []string) HealthChecker

NewHealthChecker returns HealthChecker

func (HealthChecker) Check

func (c HealthChecker) Check(ctx context.Context, client kubernetes.Interface) error

Check cheks nodes and system pods

type NamespaceResourcesDeleter

type NamespaceResourcesDeleter struct {
	// contains filtered or unexported fields
}

func MakeNamespaceResourcesDeleter

func MakeNamespaceResourcesDeleter(logger logrus.FieldLogger) NamespaceResourcesDeleter

func (NamespaceResourcesDeleter) Delete

func (d NamespaceResourcesDeleter) Delete(ctx context.Context, organizationID uint, clusterName string, k8sConfig []byte, namespace string) error

type NamespaceServicesDeleter

type NamespaceServicesDeleter struct {
	// contains filtered or unexported fields
}

func MakeNamespaceServicesDeleter

func MakeNamespaceServicesDeleter(logger logrus.FieldLogger) NamespaceServicesDeleter

func (NamespaceServicesDeleter) Delete

func (d NamespaceServicesDeleter) Delete(ctx context.Context, organizationID uint, clusterName string, k8sConfig []byte, namespace string) error

type UserNamespaceDeleter

type UserNamespaceDeleter struct {
	// contains filtered or unexported fields
}

func MakeUserNamespaceDeleter

func MakeUserNamespaceDeleter(logger logrus.FieldLogger) UserNamespaceDeleter

func (UserNamespaceDeleter) Delete

func (d UserNamespaceDeleter) Delete(ctx context.Context, organizationID uint, clusterName string, namespaces *corev1.NamespaceList, k8sConfig []byte) ([]string, error)

Jump to

Keyboard shortcuts

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