cleanup

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupManager

type CleanupManager interface {
	Cleanup(ctx context.Context, resource CleanupableResource) (ctrl.Result, error)
}

CleanupManager defines the interface for cleaning up resources

func NewDefaultCleanupManager

func NewDefaultCleanupManager(client client.Client, log logr.Logger) CleanupManager

type CleanupableResource added in v0.4.0

type CleanupableResource interface {
	GetResources() []Resource
	ShouldDelete(resource Resource) bool
}

CleanupableResource defines the interface for resources that can be cleaned up

type Resource added in v0.4.0

type Resource struct {
	Kind      string
	Name      string
	Namespace string
	Object    client.Object
}

Resource represents a generic Kubernetes resource

Jump to

Keyboard shortcuts

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