deletion

package
v0.0.0-...-1554b1e Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDeletionTimeout = 30 * time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type DeletionHandler

type DeletionHandler struct {
	Client client.Client
	Logger *zap.Logger
}

func (*DeletionHandler) DeleteObject

func (d *DeletionHandler) DeleteObject(
	ctx context.Context,
	clusterInstance *v1alpha1.ClusterInstance,
	object ci.RenderedObject,
	deletionTimeout *time.Duration,
) (bool, error)

DeleteObject ensures the deletion of an owned object.

func (*DeletionHandler) DeleteObjects

func (d *DeletionHandler) DeleteObjects(
	ctx context.Context,
	clusterInstance *v1alpha1.ClusterInstance,
	objects, excludeObjects []ci.RenderedObject,
	deletionTimeout *time.Duration,
) (deletionCompleted bool, err error)

DeleteObjects deletes the ClusterInstance rendered manifests by syncWaveGroup. SyncWaves are processed in descending order, that is, highest syncWaveGroup objects are first deleted and the lowest syncWaveGroups are deleted last. Returns: bool, error bool: indicates whether the deletion of all the specified (and owned) objects are successful error: error encountered during deletion attempt

func (*DeletionHandler) DeleteRenderedObjects

func (d *DeletionHandler) DeleteRenderedObjects(
	ctx context.Context,
	clusterInstance *v1alpha1.ClusterInstance,
	excludeObjects []ci.RenderedObject,
	deletionTimeout *time.Duration,
) (bool, error)

DeleteRenderedObjects deletes all rendered objects except those explicitly excluded.

Jump to

Keyboard shortcuts

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