enqueuelogger

package
v0.0.0-...-a20d1ab Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogEnqueueEvents = false

Functions

func WrapIfNecessary

func WrapIfNecessary(kind string, logger logr.Logger, handler handler.EventHandler) handler.EventHandler

Types

type AdditionNotifierQueue

type AdditionNotifierQueue struct {
	// contains filtered or unexported fields
}

AdditionNotifierQueue is a queue that calls an onAdd function whenever an item is added to the queue. It is meant to be used in conjunction with EnqueueEventLogger to log items enqueued by a handler.

func (*AdditionNotifierQueue) Add

func (*AdditionNotifierQueue) AddAfter

func (q *AdditionNotifierQueue) AddAfter(item reconcile.Request, duration time.Duration)

func (*AdditionNotifierQueue) AddRateLimited

func (q *AdditionNotifierQueue) AddRateLimited(item reconcile.Request)

func (*AdditionNotifierQueue) Done

func (q *AdditionNotifierQueue) Done(item reconcile.Request)

func (*AdditionNotifierQueue) Forget

func (q *AdditionNotifierQueue) Forget(item reconcile.Request)

func (*AdditionNotifierQueue) Get

func (q *AdditionNotifierQueue) Get() (item reconcile.Request, shutdown bool)

func (*AdditionNotifierQueue) Len

func (q *AdditionNotifierQueue) Len() int

func (*AdditionNotifierQueue) NumRequeues

func (q *AdditionNotifierQueue) NumRequeues(item reconcile.Request) int

func (*AdditionNotifierQueue) ShutDown

func (q *AdditionNotifierQueue) ShutDown()

func (*AdditionNotifierQueue) ShutDownWithDrain

func (q *AdditionNotifierQueue) ShutDownWithDrain()

func (*AdditionNotifierQueue) ShuttingDown

func (q *AdditionNotifierQueue) ShuttingDown() bool

type EnqueueEventLogger

type EnqueueEventLogger struct {
	// contains filtered or unexported fields
}

EnqueueEventLogger is a handler.EventHandler that wraps another handler.EventHandler and logs enqueued items (i.e. if the wrapped handler enqueues items from the event that is being handled, the EnqueueEventLogger logs them). The main purpose of this wrapper is to help with debugging which watch events are causing an object to be enqueued for reconciliation.

type EventSummary

type EventSummary struct {
	Type   string        `json:"type"`
	Object ObjectSummary `json:"object"`
}

type ObjectSummary

type ObjectSummary struct {
	Kind      string `json:"kind"`
	Namespace string `json:"namespace,omitempty"`
	Name      string `json:"name"`
}

Jump to

Keyboard shortcuts

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