filter

package
v0.0.0-...-5d8ad60 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletingPredicate

func DeletingPredicate() predicate.Predicate

DeletingPredicate returns a predicate that returns true if the object is being deleted.

func HasLabel

func HasLabel(label string) predicate.Predicate

func PodHasSpecNodeName

func PodHasSpecNodeName() predicate.Predicate

PodHasSpecNodeName returns a predicate that returns true if the object is a *v1.Pod and its .spec.nodeName property is set.

func PodReadinessChangedPredicate

func PodReadinessChangedPredicate(logger logr.Logger) predicate.Predicate

PodReadinessChangedPredicate returns a predicate for Update events that only returns true if the Ready condition changed.

func PreflightReconcilerModulePredicate

func PreflightReconcilerModulePredicate() predicate.Predicate

Types

type Filter

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

func New

func New(client client.Client, logger logr.Logger) *Filter

func (*Filter) EnqueueAllPreflightValidations

func (f *Filter) EnqueueAllPreflightValidations(mod client.Object) []reconcile.Request

func (*Filter) FindModulesForNode

func (f *Filter) FindModulesForNode(node client.Object) []reconcile.Request

func (*Filter) ModuleReconcilerNodePredicate

func (f *Filter) ModuleReconcilerNodePredicate(kernelLabel string) predicate.Predicate

func (*Filter) NodeKernelReconcilerPredicate

func (f *Filter) NodeKernelReconcilerPredicate(labelName string) predicate.Predicate

Jump to

Keyboard shortcuts

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