Documentation ¶
Index ¶
- Constants
- func PurgeBundleDeployments(ctx context.Context, c client.Client, bundle types.NamespacedName) error
- func PurgeBundles(ctx context.Context, c client.Client, gitrepo types.NamespacedName) error
- func PurgeContent(ctx context.Context, c client.Client, name, deplID string) error
- func PurgeImageScans(ctx context.Context, c client.Client, gitrepo types.NamespacedName) error
- func PurgeNamespace(ctx context.Context, c client.Client, deleteNamespace bool, ns string) error
Constants ¶
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 ¶
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
PurgeContent tries to delete the content resource related with the given bundle deployment.
func PurgeImageScans ¶
PurgeImageScans deletes all ImageScan resources related with the given GitRepo namespaces name.
func PurgeNamespace ¶
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.