enqueue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestForObjectByOwner

type RequestForObjectByOwner struct {
	// NewGroupKind is the GroupKind of the object
	NewGroupKind   schema.GroupKind
	OwnerGroupKind schema.GroupKind
}

RequestForObjectByOwner enqueues a Request containing the Name and Namespace of the object that is the source of the Event. (e.g. the created / deleted / updated objects Name and Namespace). handler.RequestForObjectByOwner is used by almost all Controllers that have associated Resources (e.g. CRDs) to reconcile the associated Resource.

func (*RequestForObjectByOwner) Create

Create implements EventHandler.

func (*RequestForObjectByOwner) Delete

Delete implements EventHandler.

func (*RequestForObjectByOwner) Generic

Generic implements EventHandler.

func (*RequestForObjectByOwner) Update

Update implements EventHandler.

type RequestForObjectGroupKind

type RequestForObjectGroupKind struct {
	// NewGroupKind is the GroupKind of the object
	NewGroupKind schema.GroupKind
}

RequestForObjectGroupKind enqueues a Request containing the Name and Namespace of the object that is the source of the Event. (e.g. the created / deleted / updated objects Name and Namespace). handler.RequestForObjectGroupKind is used by almost all Controllers that have associated Resources (e.g. CRDs) to reconcile the associated Resource.

func (*RequestForObjectGroupKind) Create

Create implements EventHandler.

func (*RequestForObjectGroupKind) Delete

Delete implements EventHandler.

func (*RequestForObjectGroupKind) Generic

Generic implements EventHandler.

func (*RequestForObjectGroupKind) Update

Update implements EventHandler.

type RequestForOwnerGroupKind

type RequestForOwnerGroupKind struct {
	// OwnerType is the type of the Owner object to look for in OwnerReferences.  Only Group and Kind are compared.
	OwnerType runtime.Object

	// IsController if set will only look at the first OwnerReference with Controller: true.
	IsController bool

	// NewGroupKind is the GroupKind of the object.
	NewGroupKind schema.GroupKind
	// contains filtered or unexported fields
}

RequestForOwnerGroupKind enqueues Requests for the Owners of an object. E.g. the object that created the object that was the source of the Event.

If a ReplicaSet creates Pods, users may reconcile the ReplicaSet in response to Pod Events using:

- a source.Kind Source with Type of Pod.

- a handler.RequestForOwnerGroupKind EventHandler with an OwnerType of ReplicaSet and IsController set to true.

func (*RequestForOwnerGroupKind) Create

Create implements EventHandler.

func (*RequestForOwnerGroupKind) Delete

Delete implements EventHandler.

func (*RequestForOwnerGroupKind) Generic

Generic implements EventHandler.

func (*RequestForOwnerGroupKind) InjectMapper

func (e *RequestForOwnerGroupKind) InjectMapper(m meta.RESTMapper) error

InjectMapper is called by the Controller to provide the rest mapper used by the manager.

func (*RequestForOwnerGroupKind) InjectScheme

func (e *RequestForOwnerGroupKind) InjectScheme(s *runtime.Scheme) error

InjectScheme is called by the Controller to provide a singleton scheme to the RequestForOwnerGroupKind.

func (*RequestForOwnerGroupKind) Update

Update implements EventHandler.

Jump to

Keyboard shortcuts

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