reconciliation

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReconcileAndGetObject added in v1.21.0

func ReconcileAndGetObject[U any, T Reconcileable[U]](
	ctx context.Context, kClient client.Client, requeueDelay time.Duration, desiredObject U,
) (result.ReconcileResult, *U)

ReconcileAndGetObject ensures that desiredObject exists in the given state, either by creating it, or updating it if it already exists. It returns the current state of the object on the server after the reconciliation.

func ReconcileObject

func ReconcileObject[U any, T Reconcileable[U]](ctx context.Context, kClient client.Client, requeueDelay time.Duration, desiredObject U) result.ReconcileResult

ReconcileObject ensures that desiredObject exists in the given state, either by creating it, or updating it if it already exists.

Types

type Reconcileable

type Reconcileable[T any] interface {
	client.Object
	DeepCopy() *T
	DeepCopyInto(o *T)
	*T
}

Jump to

Keyboard shortcuts

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