Documentation
¶
Overview ¶
Package destroy provides a generic implementation of controller which cleans up tearing down resources without finalizers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
generic.NamedController
// contains filtered or unexported fields
}
Controller provides a generic implementation of a QController which destroys tearing down resources without finalizers.
func NewController ¶
func NewController[Input generic.ResourceWithRD](concurrency optional.Optional[uint]) *Controller
NewController creates a new destroy Controller for the resource type given as a type parameter.
func NewControllerForResource ¶ added in v1.14.2
func NewControllerForResource(rd meta.ResourceDefinitionSpec, concurrency optional.Optional[uint]) *Controller
NewControllerForResource creates a new destroy Controller for the resource described by the given definition.
func (*Controller) MapInput ¶
func (ctrl *Controller) MapInput(context.Context, *zap.Logger, controller.QRuntime, controller.ReducedResourceMetadata) ([]resource.Pointer, error)
MapInput implements controller.QController interface.
func (*Controller) Reconcile ¶
func (ctrl *Controller) Reconcile(ctx context.Context, logger *zap.Logger, r controller.QRuntime, ptr resource.Pointer) error
Reconcile implements controller.QController interface.
func (*Controller) Settings ¶
func (ctrl *Controller) Settings() controller.QSettings
Settings implements controller.QController interface.
Click to show internal directories.
Click to hide internal directories.