handler

package
v0.22.6 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueueRegisteringHandler

func QueueRegisteringHandler(cluster string, queues *apqueue.MultiClusterQueues) handler.EventHandler

QueueRegisteringHandler registers the queue on the first create event it receives to a multi cluster queue registry.

func RequestForObject

func RequestForObject(meta v1.Object) reconcile.Request

Types

type BroadcastRequests

type BroadcastRequests struct {
	// the set of all requests to enqueueRequestsAllClusters by the target cluster (where the primary resource lives)
	RequestsToEnqueue *request.MultiClusterRequests

	// use this to queue requests to controllers registered to another manager
	WorkQueues *skqueue.MultiClusterQueues
}

BroadcastRequests enqueues statically defined requests across clusters whenever an event is received. Use this to propagate a list of requests to queues shared across cluster managers. This is used by SKv2 to enqueueRequestsAllClusters requests for a primary level resource whenever a watched input resource changes, regardless of the cluster the primary resource lives in.

func (*BroadcastRequests) Create

Create implements EventHandler

func (*BroadcastRequests) Delete

Delete implements EventHandler

func (*BroadcastRequests) Generic

Generic implements EventHandler

func (*BroadcastRequests) Update

Update implements EventHandler

type MultiClusterRequestTracker

type MultiClusterRequestTracker struct {
	Cluster  string
	Requests *request.MultiClusterRequests
}

MultiClusterRequestTracker tracks reconcile requests across clusters It is used to map requests for input resources (in any cluster) back to the original

func (*MultiClusterRequestTracker) Create

func (*MultiClusterRequestTracker) Delete

func (*MultiClusterRequestTracker) Generic

func (*MultiClusterRequestTracker) Update

type MultiHandler

type MultiHandler struct {
	Handlers []handler.EventHandler
}

MultiHandler wraps and calls multiple event handlers as a single handler.Handler

func (*MultiHandler) Create

func (*MultiHandler) Delete

func (*MultiHandler) Generic

func (*MultiHandler) Update

Jump to

Keyboard shortcuts

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