finalize

package
v0.17.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HelmOpFinalizer           = "fleet.cattle.io/helmop-finalizer"
	GitRepoFinalizer          = "fleet.cattle.io/gitrepo-finalizer"
	BundleFinalizer           = "fleet.cattle.io/bundle-finalizer"
	BundleDeploymentFinalizer = "fleet.cattle.io/bundle-deployment-finalizer"
	ClusterFinalizer          = "fleet.cattle.io/cluster-finalizer"
	ScheduleFinalizer         = "fleet.cattle.io/schedule-finalizer"
)

Variables

This section is empty.

Functions

func EnsureFinalizer added in v0.15.0

func EnsureFinalizer(ctx context.Context, c client.Client, obj client.Object, finalizer string) error

EnsureFinalizer adds a finalizer to the given object if it doesn't exist.

func PurgeBundles

func PurgeBundles(ctx context.Context, c client.Client, gitrepo types.NamespacedName, resourceLabel string) error

PurgeBundles deletes all bundles related to the given resource namespaced name It deletes resources in cascade. Deleting Bundles, its BundleDeployments, and the related namespace if Bundle.Spec.DeleteNamespace is set to true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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