util

package
v0.0.0-...-8531fef Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFinalizer

func AddFinalizer(obj metav1.Object, finalizer string)

AddFinalizer adds the passed finalizer this object

func CheckURL

func CheckURL(url string, header http.Header, expectedStatus int) error

func HasFinalizer

func HasFinalizer(obj metav1.Object, finalizer string) bool

HasFinalizer returns whether this object has the passed finalizer

func IsBeingDeleted

func IsBeingDeleted(obj metav1.Object) bool

IsBeingDeleted returns whether this object has been requested to be deleted

func RemoveFinalizer

func RemoveFinalizer(obj metav1.Object, finalizer string)

RemoveFinalizer removes the passed finalizer from object

Types

type ResourceGenerationChangedPredicate

type ResourceGenerationChangedPredicate struct {
	predicate.Funcs
}

ResourceGenerationOrFinalizerChangedPredicate this producates will fire an update event when the spec of a resource is changed (controller by ResourceGeneration), or when the finalizers are changed

func (ResourceGenerationChangedPredicate) Update

Update implements default UpdateEvent filter for validating resource version change

Jump to

Keyboard shortcuts

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