events

package
v0.0.0-...-d7985ca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PodNominationRateLimiter = flowcontrol.NewTokenBucketRateLimiter(5, 10)

PodNominationRateLimiter is a pointer so it rate-limits across events

Functions

This section is empty.

Types

type Event

type Event struct {
	InvolvedObject runtime.Object
	Type           string
	Reason         string
	Message        string
	DedupeValues   []string
	DedupeTimeout  time.Duration
	RateLimiter    flowcontrol.RateLimiter
}

func EvictPod

func EvictPod(pod *v1.Pod) Event

func NodeFailedToDrain

func NodeFailedToDrain(node *v1.Node, err error) Event

func NodeInflightCheck

func NodeInflightCheck(node *v1.Node, message string) Event

func NominatePod

func NominatePod(pod *v1.Pod, node *v1.Node) Event

func PodFailedToSchedule

func PodFailedToSchedule(pod *v1.Pod, err error) Event

type Recorder

type Recorder interface {
	Publish(Event)
}

func NewRecorder

func NewRecorder(r record.EventRecorder) Recorder

Jump to

Keyboard shortcuts

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