finalize

package
v0.10.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GitRepoFinalizer          = "fleet.cattle.io/gitrepo-finalizer"
	BundleFinalizer           = "fleet.cattle.io/bundle-finalizer"
	BundleDeploymentFinalizer = "fleet.cattle.io/bundle-deployment-finalizer"
)

Variables

This section is empty.

Functions

func PurgeBundleDeployments

func PurgeBundleDeployments(ctx context.Context, c client.Client, bundle types.NamespacedName) error

PurgeBundleDeployments deletes all BundleDeployments related with the given Bundle namespaced name.

func PurgeBundles

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

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

func PurgeContent added in v0.10.1

func PurgeContent(ctx context.Context, c client.Client, name, deplID string) error

PurgeContent tries to delete the content resource related with the given bundle deployment.

func PurgeImageScans

func PurgeImageScans(ctx context.Context, c client.Client, gitrepo types.NamespacedName) error

PurgeImageScans deletes all ImageScan resources related with the given GitRepo namespaces name.

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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