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 ¶
func (r *NamespacedResourcesDeleter) Reconcile(ctx context.Context, rq ctrl.Request) (ctrl.Result, error)
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
Click to show internal directories.
Click to hide internal directories.