uninstaller

package
v0.3.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package uninstaller contains the Liqo uninstaller logic for a clean uninstall.

Index

Constants

View Source
const ConditionsToCheck = 1

ConditionsToCheck maps the number of conditions to be checked waiting for the unpeer.

View Source
const TickerInterval = 5 * time.Second

TickerInterval defines the check interval.

View Source
const TickerTimeout = 5 * time.Minute

TickerTimeout defines the overall timeout to be waited.

Variables

This section is empty.

Functions

func CheckDeletion

func CheckDeletion(client dynamic.Interface, res *resultType, quit chan struct{}, toCheck toCheckDeleted)

func CheckObjectsDeletion

func CheckObjectsDeletion(client dynamic.Interface, objectsToCheck toCheckDeleted) (bool, error)

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

func CheckUnjoin(client dynamic.Interface, res *resultType, quit chan struct{}, toCheck toCheckDeleted)

func DeleteAllForeignClusters added in v0.3.0

func DeleteAllForeignClusters(ctx context.Context, client dynamic.Interface) error

DeleteAllForeignClusters deletes all ForeignCluster resources.

func DisableDiscoveryAndPeering

func DisableDiscoveryAndPeering(ctx context.Context, client dynamic.Interface) error

DisableDiscoveryAndPeering disables discovery and peering mechanism to prevent new peerings to happen.

func UnjoinClusters

func UnjoinClusters(ctx context.Context, client dynamic.Interface) error

UnjoinClusters disables outgoing peerings with available clusters.

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

func WaitForResources(client dynamic.Interface) error

WaitForResources waits until existing peerings are disabled and associated resources are removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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