client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotControlled = errors.New("not controlled")

ErrNotControlled is returned if the actual object is not controlled by the specified owner.

Functions

func ControlledCreateOrGet

func ControlledCreateOrGet(ctx context.Context, c client.Client, owner client.Object, obj client.Object, mutate controllerutil.MutateFn) error

ControlledCreateOrGet gets an object if it is controlled by the owner or creates the object with the given owner. If the object exists but is not owned, an error is returned.

func PatchAddReconcileAnnotation

func PatchAddReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) error

func PatchEnsureNoReconcileAnnotation

func PatchEnsureNoReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) (modified bool, err error)

func PatchRemoveReconcileAnnotation

func PatchRemoveReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) error

func ReconcileRequestsFromObjectSlice

func ReconcileRequestsFromObjectSlice[S ~[]O, ObjPtr interface {
	client.Object
	*O
}, O any](objs S) []reconcile.Request

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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