deletion

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WorkspaceFinalizer = "tenancy.kcp.dev/workspace-finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourcesRemainingError

type ResourcesRemainingError struct {
	Estimate int64
	Message  string
}

ResourcesRemainingError is used to inform the caller that all resources are not yet fully removed from the workspace.

func (*ResourcesRemainingError) Error

func (e *ResourcesRemainingError) Error() string

type WorkspaceResourcesDeleterInterface

type WorkspaceResourcesDeleterInterface interface {
	Delete(ctx context.Context, ws *tenancyv1alpha1.ClusterWorkspace) error
}

WorkspaceResourcesDeleterInterface is the interface to delete a workspace with all resources in it. This is a copy from namespace deleteor in k8s with some modification: - change the condition update code - remove opCache - update deleteCollection to delete resources from all namespaces

func NewWorkspacedResourcesDeleter

func NewWorkspacedResourcesDeleter(
	metadataClusterClient metadata.Interface,
	discoverResourcesFn func(clusterName logicalcluster.Name) ([]*metav1.APIResourceList, error)) WorkspaceResourcesDeleterInterface

NewWorkspacedResourcesDeleter returns a new NamespacedResourcesDeleter.

Jump to

Keyboard shortcuts

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