clean

package
v0.0.0-...-aba7421 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const TagDLB = "DLB"

Variables

View Source
var Backoff = wait.Backoff{
	Steps:    12,
	Duration: 10 * time.Second,
	Factor:   2.0,
	Jitter:   0.1,
}

Functions

func Clean

Clean cleans up NSX resources, including security policy, static route, subnet, subnet port, subnet set, vpc, ip pool, nsx service account besides, it also cleans up DLB resources, which was previously implemented in nsx-ncp, it is usually used when nsx-operator is uninstalled and remove all the resources created by nsx-operator return error if any, return nil if no error the error type include followings: ValidationFailed indicate that the config is incorrect and failed to pass validation GetNSXClientFailed indicate that could not retrieve nsx client to perform cleanup operation InitCleanupServiceFailed indicate that error happened when trying to initialize cleanup service CleanupResourceFailed indicate that the cleanup operation failed at some services, the detailed will in the service logs

func CleanDLB

func CleanDLB(ctx context.Context, cluster *nsx.Cluster, cf *config.NSXOperatorConfig) error

Types

type CleanupService

type CleanupService struct {
	// contains filtered or unexported fields
}

func InitializeCleanupService

func InitializeCleanupService(cf *config.NSXOperatorConfig, nsxClient *nsx.Client) (*CleanupService, error)

InitializeCleanupService initializes all the CR services

func NewCleanupService

func NewCleanupService() *CleanupService

func (*CleanupService) AddCleanupService

func (c *CleanupService) AddCleanupService(f cleanupFunc) *CleanupService

Jump to

Keyboard shortcuts

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