predicate

package
v0.0.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadyWhen

func ReadyWhen(jsonPath string, condition func(v interface{}) bool) func(client.Object) bool

ReadyWhen returns the provided wrapped predicate condition, passing the object specified by jsonPath to condition

Types

type Predicate

type Predicate func(obj client.Object) bool

func HasAnnotation

func HasAnnotation(annotation string) Predicate

HasAnnotation creates a predicate function that will return true if the annotation exists in resource metadata

func HasAnnotationWithValue

func HasAnnotationWithValue(annotation string, value string) Predicate

HasAnnotationWithValue creates a predicate function that will return true if the annotation exists in resource metadata and the value of the annotation matches the provided value

func HasFinalizer

func HasFinalizer(finalizer string) Predicate

HasFinalizer creates a predicate function that will return true if the object metadata contains the provided finalizer

Jump to

Keyboard shortcuts

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