predicate

package
v1.1.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IgnoreDelete

type IgnoreDelete[T any] struct {
	predicate.TypedFuncs[T]
}

IgnoreDelete is a predicate that filters out Delete events.

Typically, a reconciler will not need to do anything when it receives an event.TypedDeleteEvent, as it acts on the event.TypedUpdateEvent which sets the deletion timestamp.

func (IgnoreDelete[T]) Delete

func (i IgnoreDelete[T]) Delete(event.TypedDeleteEvent[T]) bool

Delete always returns false, ignoring the event.

Jump to

Keyboard shortcuts

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