Documentation ¶
Index ¶
Constants ¶
const TagDLB = "DLB"
Variables ¶
var Backoff = wait.Backoff{ Steps: 12, Duration: 10 * time.Second, Factor: 2.0, Jitter: 0.1, }
Functions ¶
func Clean ¶
func Clean(ctx context.Context, cf *config.NSXOperatorConfig) error
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
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