filter

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 18 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 NodeLabelModuleVersionUpdatePredicate added in v1.1.0

func NodeLabelModuleVersionUpdatePredicate(logger logr.Logger) predicate.Predicate

func NodeUpdateKernelChangedPredicate

func NodeUpdateKernelChangedPredicate() 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 PreflightReconcilerUpdatePredicate

func PreflightReconcilerUpdatePredicate() predicate.Predicate

Types

type Filter

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

func New

func New(client client.Client) *Filter

func (*Filter) EnqueueAllPreflightValidations

func (f *Filter) EnqueueAllPreflightValidations(ctx context.Context, mod client.Object) []reconcile.Request

func (*Filter) FindManagedClusterModulesForCluster

func (f *Filter) FindManagedClusterModulesForCluster(ctx context.Context, cluster client.Object) []reconcile.Request

func (*Filter) FindModulesForNode

func (f *Filter) FindModulesForNode(ctx context.Context, node client.Object) []reconcile.Request

func (*Filter) ManagedClusterModuleReconcilerManagedClusterPredicate

func (f *Filter) ManagedClusterModuleReconcilerManagedClusterPredicate() predicate.Predicate

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