finalize

package
v0.14.1-beta.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 8 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"
)

Variables

This section is empty.

Functions

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.

func PurgeNamespace

func PurgeNamespace(ctx context.Context, c client.Client, deleteNamespace bool, ns string) error

PurgeNamespace deletes the given namespace if deleteNamespace is set to true. It ignores the following namespaces, that are considered as default by fleet or kubernetes: fleet-local, cattle-fleet-system, fleet-default, cattle-fleet-clusters-system, default

func PurgeTargetNamespaceIfNeeded

func PurgeTargetNamespaceIfNeeded(ctx context.Context, c client.Client, gitrepo *v1alpha1.GitRepo) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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