cleaner

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleaner

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

Cleaner provides functionality to remove all ServiceCatalog CRDs/CRs

func New

func New(
	k8sclient kubernetes.Interface,
	serviceCatalogClient sc.Interface,
	apiExtClient apiextensionsclientset.Interface) *Cleaner

New returns new Cleaner struct

func (*Cleaner) RemoveCRDs

func (c *Cleaner) RemoveCRDs(releaseNamespace, controllerManagerName string, webhookConf []string) error

RemoveCRDs takes five steps, first scale down controller manager deployment, second remove ServiceCatalog WebhookConfigurations third removes all ServiceCatalog CRDs, four removes all finalizers from CRs and the last step makes sure all ServiceCatalog CRDs are removed

type FinalizerCleaner

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

FinalizerCleaner is responsible for removing ServiceCatalog finalizers from ServiceCatalog CRs and makes sure all finalizers from CRs are removed

func NewFinalizerCleaner

func NewFinalizerCleaner(scClient sc.Interface) *FinalizerCleaner

NewFinalizerCleaner returns new pointer to FinalizerCleaner

func (*FinalizerCleaner) RemoveFinalizers

func (fc *FinalizerCleaner) RemoveFinalizers() error

RemoveFinalizers removes specific finalizers from all ServiceCatalog CRs

type FinalizerGetter

type FinalizerGetter interface {
	GetFinalizers() []string
}

FinalizerGetter contract for structs which has finalizers

Jump to

Keyboard shortcuts

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