clusterdeployment

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupOrphanedClusterDeployments added in v0.3.4

func CleanupOrphanedClusterDeployments(ctx context.Context, c client.Client, colony *infrav1.Colony, scheme *runtime.Scheme) (bool, error)

CleanupOrphanedClusterDeployments removes ClusterDeployment objects that are no longer referenced in the Colony spec but still exist in the status. Returns (hasPendingDeletions, error) - hasPendingDeletions is true if there are still ClusterDeployments being deleted that require a requeue.

func DeletePVCForClusterDeployment added in v0.4.10

func DeletePVCForClusterDeployment(ctx context.Context, c client.Client, clusterDeployment *k0rdentv1beta1.ClusterDeployment, scheme *runtime.Scheme) error

DeletePVCForClusterDeployment deletes the PVC associated with a ClusterDeployment. It first tries the management cluster. If the PVC is not found there, it checks whether a regional cluster exists in the namespace (by label kof-cluster-role=regional) and tries deleting the PVC on the regional cluster instead. If the regional client cannot be resolved (e.g. kubeconfig secret already deleted), the error is logged and nil is returned — the PVC is likely already gone with the regional cluster.

func EnsureClusterDeployment

func EnsureClusterDeployment(ctx context.Context, c client.Client, colony *infrav1.Colony, colonyCluster *infrav1.ColonyCluster, scheme *runtime.Scheme) error

func WaitForClusterDeletion added in v0.3.4

func WaitForClusterDeletion(ctx context.Context, c client.Client, clusterDeployment *k0rdentv1beta1.ClusterDeployment, scheme *runtime.Scheme, timeout, interval time.Duration) error

WaitForClusterDeletion polls until the given ClusterDeployment is no longer found.

Types

This section is empty.

Jump to

Keyboard shortcuts

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