watch

package
v0.0.0-...-1fcc1f3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Status = "status"
	State  = "state"
)

Variables

View Source
var (
	ErrNoUniqueKind = errors.New("multiple kind candidates are invalid")
	ErrStateInvalid = errors.New("state from component object could not be interpreted")
)

Functions

This section is empty.

Types

type ChangeHandlerClient

type ChangeHandlerClient interface {
	client.Reader
	record.EventRecorder
}

type MandatoryTemplateChangeHandler

type MandatoryTemplateChangeHandler struct {
	client.Reader
	record.EventRecorder
}

func NewMandatoryTemplateChangeHandler

func NewMandatoryTemplateChangeHandler(handlerClient ChangeHandlerClient) *MandatoryTemplateChangeHandler

func (*MandatoryTemplateChangeHandler) Watch

type RestrictedEnqueueRequestForOwner

type RestrictedEnqueueRequestForOwner struct {
	Log logr.Logger

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

	// IsController if set will only look at the first OwnerReference with Controller: true.
	IsController bool
	// contains filtered or unexported fields
}

EnqueueRequestForOwner 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.EnqueueRequestForOwner EventHandler with an OwnerType of ReplicaSet and IsController set to true.

func (*RestrictedEnqueueRequestForOwner) Create

Create implements EventHandler.

func (*RestrictedEnqueueRequestForOwner) Delete

Delete implements EventHandler.

func (*RestrictedEnqueueRequestForOwner) Generic

Generic implements EventHandler.

func (*RestrictedEnqueueRequestForOwner) InjectMapper

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

func (*RestrictedEnqueueRequestForOwner) InjectScheme

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

func (*RestrictedEnqueueRequestForOwner) Update

Update implements EventHandler.

type TemplateChangeHandler

type TemplateChangeHandler struct {
	client.Reader
	record.EventRecorder
}

func NewTemplateChangeHandler

func NewTemplateChangeHandler(handlerClient ChangeHandlerClient) *TemplateChangeHandler

func (*TemplateChangeHandler) Watch

Jump to

Keyboard shortcuts

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