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 ¶
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.
Click to show internal directories.
Click to hide internal directories.