Documentation
¶
Overview ¶
Package uninstaller contains the Liqo uninstaller logic for a clean uninstall.
Index ¶
- Constants
- func AnnotateControllerManagerDeployment(ctx context.Context, client dynamic.Interface, liqoNamespace string) error
- func CheckDeletion(client dynamic.Interface, res *resultType, quit chan struct{}, ...)
- func CheckObjectsDeletion(client dynamic.Interface, objectsToCheck *toCheckDeleted) (bool, error)
- func CheckUnjoin(client dynamic.Interface, res *resultType, quit chan struct{}, ...)
- func DeleteAllForeignClusters(ctx context.Context, client dynamic.Interface) error
- func DeleteIPs(ctx context.Context, client dynamic.Interface) error
- func DeleteInternalNodes(ctx context.Context, client dynamic.Interface) error
- func DeleteIpamStorage(ctx context.Context, client dynamic.Interface) error
- func DeleteNetworks(ctx context.Context, client dynamic.Interface) error
- func WaitForEffectiveDeletion(client dynamic.Interface, toCheck *toCheckDeleted, result chan *resultType, ...)
- func WaitForResources(client dynamic.Interface, phase phase) error
Constants ¶
const ( // PhaseUnpeering -> the peering is being teared down. PhaseUnpeering phase = iota // PhaseCleanup -> the final cleanup after unpeering is being performed. PhaseCleanup )
const ConditionsToCheck = 1
ConditionsToCheck maps the number of conditions to be checked waiting for the unpeer.
const TickerInterval = 5 * time.Second
TickerInterval defines the check interval.
const TickerTimeout = 5 * time.Minute
TickerTimeout defines the overall timeout to be waited.
Variables ¶
This section is empty.
Functions ¶
func AnnotateControllerManagerDeployment ¶
func AnnotateControllerManagerDeployment(ctx context.Context, client dynamic.Interface, liqoNamespace string) error
AnnotateControllerManagerDeployment annotates the controller-manager deployment with the uninstaller label.
func CheckDeletion ¶
func CheckDeletion(client dynamic.Interface, res *resultType, quit chan struct{}, toCheck *toCheckDeleted)
CheckDeletion checks if the resources of a certain type have been deleted.
func CheckObjectsDeletion ¶
CheckObjectsDeletion verifies that objects of a certain type have been deleted or are not present on the server. It returns true when this last condition is verified.
func CheckUnjoin ¶
CheckUnjoin checks if all peering are disabled.
func DeleteAllForeignClusters ¶ added in v0.3.0
DeleteAllForeignClusters deletes all ForeignCluster resources.
func DeleteInternalNodes ¶
DeleteInternalNodes deletes all InternalNode resources.
func DeleteIpamStorage ¶
DeleteIpamStorage deletes the IpamStorage installed.
func DeleteNetworks ¶
DeleteNetworks deletes the Networks installed.
func WaitForEffectiveDeletion ¶
func WaitForEffectiveDeletion(client dynamic.Interface, toCheck *toCheckDeleted, result chan *resultType, wg *sync.WaitGroup, funcCheck func(client dynamic.Interface, res *resultType, quit chan struct{}, toCheck *toCheckDeleted))
WaitForEffectiveDeletion waits until toCheck resources are deleted.
func WaitForResources ¶
WaitForResources waits until existing peerings are disabled and associated resources are removed.
Types ¶
This section is empty.