controllermanager

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamespaceConditionUpdater

type NamespaceConditionUpdater interface {
	ProcessDiscoverResourcesErr(e error)
	ProcessGroupVersionErr(e error)
	ProcessDeleteContentErr(e error)
	Update(*v1.Namespace) bool
}

NamespaceConditionUpdater interface that translates namespace deleter errors into namespace status conditions.

type NamespacedResourcesDeleter

type NamespacedResourcesDeleter struct {
	client.Client

	DiscoverResourcesFn func() ([]*metav1.APIResourceList, error)
	// contains filtered or unexported fields
}

NamespacedResourcesDeleter is a reconciler used to delete a namespace with all resources in it.

func NewNamespacedResourcesDeleter

func NewNamespacedResourcesDeleter(mgr manager.Manager, client clientset.Interface, metadataClient metadata.Interface) *NamespacedResourcesDeleter

newReconciler returns a new reconcile.Reconciler.

func (*NamespacedResourcesDeleter) Reconcile

reconcile reads that state of the cluster for a RollingUpgrade object and makes changes based on the state read and the details in the RollingUpgrade.Spec.

func (*NamespacedResourcesDeleter) SetupWithManager

func (r *NamespacedResourcesDeleter) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

type ResourcesRemainingError

type ResourcesRemainingError struct {
	Estimate int64
}

ResourcesRemainingError is used to inform the caller that all resources are not yet fully removed from the namespace.

func (*ResourcesRemainingError) Error

func (e *ResourcesRemainingError) Error() string

Jump to

Keyboard shortcuts

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