filters

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NodeNotReady EventReason when Node is NotReady
	NodeNotReady string = "NodeNotReady"
	// NodeReady EventReason when Node is Ready
	NodeReady string = "NodeReady"
)
View Source
const (
	// DisableAnnotation is the object disable annotation.
	DisableAnnotation string = "botkube.io/disable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeEventsChecker

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

NodeEventsChecker checks job status and adds message in the events structure

func NewNodeEventsChecker

func NewNodeEventsChecker(log logrus.FieldLogger) *NodeEventsChecker

NewNodeEventsChecker creates a new NodeEventsChecker instance

func (*NodeEventsChecker) Describe

func (f *NodeEventsChecker) Describe() string

Describe describes the filter

func (*NodeEventsChecker) Name

func (f *NodeEventsChecker) Name() string

Name returns the filter's name

func (*NodeEventsChecker) Run

func (f *NodeEventsChecker) Run(_ context.Context, event *event.Event) error

Run filers and modifies event struct

type ObjectAnnotationChecker

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

ObjectAnnotationChecker forwards events to specific channels based on a special annotation if it is set on a given K8s resource.

func NewObjectAnnotationChecker

func NewObjectAnnotationChecker(log logrus.FieldLogger, dynamicCli dynamic.Interface, mapper meta.RESTMapper) *ObjectAnnotationChecker

NewObjectAnnotationChecker creates a new ObjectAnnotationChecker instance.

func (*ObjectAnnotationChecker) Describe

func (f *ObjectAnnotationChecker) Describe() string

Describe describes the filter.

func (*ObjectAnnotationChecker) Name

func (f *ObjectAnnotationChecker) Name() string

Name returns the filter's name.

func (*ObjectAnnotationChecker) Run

Run filters and modifies event struct.

Jump to

Keyboard shortcuts

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