uninstall

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationKey = "policy.open-cluster-management.io/uninstalling"
View Source
const (
	ControllerName = "uninstall-watcher"
)

Variables

View Source
var (
	DeploymentIsUninstalling = false
)

Functions

func StartWatcher

func StartWatcher(ctx context.Context, mgr manager.Manager, namespace string) error

StartWatcher starts the uninstall watcher, which watches the controller's Deployment so that when the uninstallation annotation is present, the global uninstallation flag will be set to true.

func Trigger

func Trigger(args []string) error

Trigger adds the uninstallation annotation to the Deployment, then deletes all the policies. It will return nil only when all the policies are gone. It takes command line arguments to configure itself.

Types

This section is empty.

Jump to

Keyboard shortcuts

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