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.
Click to show internal directories.
Click to hide internal directories.