Documentation
¶
Index ¶
- func Reconciled() (reconcile.Result, error)
- func RequeueAfter(ctx context.Context, duration time.Duration, msg string, ...) (reconcile.Result, error)
- func RequeueWithError(ctx context.Context, err error, msg string, keysAndValues ...interface{}) (reconcile.Result, error)
- func RequeueWithErrorChecking(ctx context.Context, err error, msg string, keysAndValues ...interface{}) (reconcile.Result, error)
- type ResourceWatcher
- func (w ResourceWatcher) Create(ctx context.Context, event event.CreateEvent, ...)
- func (w ResourceWatcher) Delete(ctx context.Context, event event.DeleteEvent, ...)
- func (w ResourceWatcher) Generic(ctx context.Context, event event.GenericEvent, ...)
- func (w ResourceWatcher) Update(ctx context.Context, event event.UpdateEvent, ...)
- func (w ResourceWatcher) Watch(ctx context.Context, watchedName, dependentName types.NamespacedName)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Reconciled ¶
func RequeueAfter ¶
func RequeueWithError ¶
Types ¶
type ResourceWatcher ¶ added in v0.18.1
type ResourceWatcher struct {
// contains filtered or unexported fields
}
ResourceWatcher implements handler.EventHandler and is used to trigger reconciliation when a watched object changes. It's designed to only be used for a single type of object. If multiple types should be watched, one ResourceWatcher for each type should be used.
func NewResourceWatcher ¶ added in v0.18.1
func NewResourceWatcher() *ResourceWatcher
NewResourceWatcher will create a new ResourceWatcher with no watched objects.
func (ResourceWatcher) Create ¶ added in v0.18.1
func (w ResourceWatcher) Create(ctx context.Context, event event.CreateEvent, queue workqueue.RateLimitingInterface)
func (ResourceWatcher) Delete ¶ added in v0.18.1
func (w ResourceWatcher) Delete(ctx context.Context, event event.DeleteEvent, queue workqueue.RateLimitingInterface)
func (ResourceWatcher) Generic ¶ added in v0.18.1
func (w ResourceWatcher) Generic(ctx context.Context, event event.GenericEvent, queue workqueue.RateLimitingInterface)
func (ResourceWatcher) Update ¶ added in v0.18.1
func (w ResourceWatcher) Update(ctx context.Context, event event.UpdateEvent, queue workqueue.RateLimitingInterface)
func (ResourceWatcher) Watch ¶ added in v0.18.1
func (w ResourceWatcher) Watch(ctx context.Context, watchedName, dependentName types.NamespacedName)
Watch will add a new object to watch.
Click to show internal directories.
Click to hide internal directories.