Documentation
¶
Index ¶
- Constants
- func PurgeBundles(ctx context.Context, c client.Client, gitrepo types.NamespacedName, ...) error
- func PurgeNamespace(ctx context.Context, c client.Client, deleteNamespace bool, ns string) error
- func PurgeTargetNamespaceIfNeeded(ctx context.Context, c client.Client, gitrepo *v1alpha1.GitRepo) error
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.