Documentation ¶
Index ¶
- func NewImpl(ctx context.Context, r Interface, optionsFns ...controller.OptionsFn) *controller.Impl
- func NewReconciler(ctx context.Context, logger *zap.SugaredLogger, client versioned.Interface, ...) controller.Reconciler
- type Finalizer
- type Interface
- type ReadOnlyFinalizerdeprecated
- type ReadOnlyInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImpl ¶
func NewImpl(ctx context.Context, r Interface, optionsFns ...controller.OptionsFn) *controller.Impl
NewImpl returns a controller.Impl that handles queuing and feeding work from the queue through an implementation of controller.Reconciler, delegating to the provided Interface and optional Finalizer methods. OptionsFn is used to return controller.ControllerOptions to be used by the internal reconciler.
func NewReconciler ¶
func NewReconciler(ctx context.Context, logger *zap.SugaredLogger, client versioned.Interface, lister pipelinev1beta1.ClusterTaskLister, recorder record.EventRecorder, r Interface, options ...controller.Options) controller.Reconciler
Types ¶
type Finalizer ¶
type Finalizer interface { // FinalizeKind implements custom logic to finalize v1beta1.ClusterTask. Any changes // to the objects .Status or .Finalizers will be ignored. Returning a nil or // Normal type reconciler.Event will allow the finalizer to be deleted on // the resource. The resource passed to FinalizeKind will always have a set // deletion timestamp. FinalizeKind(ctx context.Context, o *v1beta1.ClusterTask) reconciler.Event }
Finalizer defines the strongly typed interfaces to be implemented by a controller finalizing v1beta1.ClusterTask.
type Interface ¶
type Interface interface { // ReconcileKind implements custom logic to reconcile v1beta1.ClusterTask. Any changes // to the objects .Status or .Finalizers will be propagated to the stored // object. It is recommended that implementors do not call any update calls // for the Kind inside of ReconcileKind, it is the responsibility of the calling // controller to propagate those properties. The resource passed to ReconcileKind // will always have an empty deletion timestamp. ReconcileKind(ctx context.Context, o *v1beta1.ClusterTask) reconciler.Event }
Interface defines the strongly typed interfaces to be implemented by a controller reconciling v1beta1.ClusterTask.
type ReadOnlyFinalizer
deprecated
type ReadOnlyFinalizer interface { // ObserveFinalizeKind implements custom logic to observe the final state of v1beta1.ClusterTask. // This method should not write to the API. // // Deprecated: Use reconciler.ObserveDeletion instead. ObserveFinalizeKind(ctx context.Context, o *v1beta1.ClusterTask) reconciler.Event }
ReadOnlyFinalizer defines the strongly typed interfaces to be implemented by a controller finalizing v1beta1.ClusterTask if they want to process tombstoned resources even when they are not the leader. Due to the nature of how finalizers are handled there are no guarantees that this will be called.
Deprecated: Use reconciler.OnDeletionInterface instead.
type ReadOnlyInterface ¶
type ReadOnlyInterface interface { // ObserveKind implements logic to observe v1beta1.ClusterTask. // This method should not write to the API. ObserveKind(ctx context.Context, o *v1beta1.ClusterTask) reconciler.Event }
ReadOnlyInterface defines the strongly typed interfaces to be implemented by a controller reconciling v1beta1.ClusterTask if they want to process resources for which they are not the leader.