Documentation ¶
Index ¶
- Variables
- func ControlledCreateOrGet(ctx context.Context, c client.Client, owner client.Object, obj client.Object, ...) error
- func PatchAddReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) error
- func PatchEnsureNoReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) (modified bool, err error)
- func PatchRemoveReconcileAnnotation(ctx context.Context, c client.Client, obj client.Object) error
- func ReconcileRequestsFromObjectSlice[S ~[]O, ObjPtr interface{ ... }, O any](objs S) []reconcile.Request
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.