eventer

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// KubernetesEventGeneratedDiagnosisPrefix is the name prefix for diagnoses generated by kubernetes events.
	KubernetesEventGeneratedDiagnosisPrefix = "kubernetes-event"
	// KubernetesEventAnnotation is the annotation used to store the kubernetes event that triggers a diagnosis.
	KubernetesEventAnnotation = util.KubeDiagPrefix + KubernetesEventGeneratedDiagnosisPrefix
)

Functions

This section is empty.

Types

type Eventer

type Eventer interface {
	// Run runs the Eventer.
	Run(<-chan struct{})
}

Eventer generates diagnoses from kubernetes events.

func NewEventer

func NewEventer(
	ctx context.Context,
	logger logr.Logger,
	cli client.Client,
	cache cache.Cache,
	eventChainCh chan corev1.Event,
	eventerEnabled bool,
) Eventer

NewEventer creates a new Eventer.

Jump to

Keyboard shortcuts

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