predicate

package
v1.127.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotationKeyAlphaReconciler = "alpha.cnrm.cloud.google.com/reconciler"

AnnotationKeyAlphaReconciler allows customers to opt-in to using the direct reconciler.

Variables

This section is empty.

Functions

This section is empty.

Types

type InverseReconcilePredicate added in v1.122.0

type InverseReconcilePredicate struct {
	// contains filtered or unexported fields
}

InverseReconcilePredicate generates a controller-runtime predicate based on the inverse of a ReconcileGate.

func NewInverseReconcilePredicate added in v1.122.0

func NewInverseReconcilePredicate(c client.Client, gvk schema.GroupVersionKind, rg ReconcileGate) *InverseReconcilePredicate

func (*InverseReconcilePredicate) Create added in v1.122.0

func (*InverseReconcilePredicate) Delete added in v1.122.0

func (*InverseReconcilePredicate) Generic added in v1.122.0

func (*InverseReconcilePredicate) Update added in v1.122.0

type OptInToDirectReconciliation added in v1.122.0

type OptInToDirectReconciliation struct {
}

OptInToDirectReconciliation allows users to opt in to direct reconciliation by specifying an AnnotationKeyAlphaReconciler annotation.

func (*OptInToDirectReconciliation) ShouldReconcile added in v1.122.0

ShouldReconcile returns true if the reconciler should be used to for the resource.

type ReconcileGate added in v1.122.0

type ReconcileGate interface {
	// ShouldReconcile returns true if the reconciler should be used to for the resource.
	ShouldReconcile(o *unstructured.Unstructured) bool
}

ReconcileGate allows controllers to select which resources they are enabled for, based on features of the resource to-be-reconciled. This allows for partially enabling a controller.

type ReconcilePredicate added in v1.122.0

type ReconcilePredicate struct {
	// contains filtered or unexported fields
}

ReconcilePredicate generates a controller-runtime predicate based on a ReconcileGate.

func NewReconcilePredicate added in v1.122.0

func NewReconcilePredicate(c client.Client, gvk schema.GroupVersionKind, rg ReconcileGate) *ReconcilePredicate

func (*ReconcilePredicate) Create added in v1.122.0

func (*ReconcilePredicate) Delete added in v1.122.0

func (*ReconcilePredicate) Generic added in v1.122.0

func (p *ReconcilePredicate) Generic(e event.GenericEvent) bool

func (*ReconcilePredicate) Update added in v1.122.0

type UnderlyingResourceOutOfSyncPredicate

type UnderlyingResourceOutOfSyncPredicate struct {
	predicate.Funcs
}

This predicate will react to changes only when there is something relevant to send to the underlying API.

func (UnderlyingResourceOutOfSyncPredicate) Delete

Delete always returns false, as resources deleted directly from the API server should not be reconciled. We process user-requested deletions via the updated DeletionTimestamp.

func (UnderlyingResourceOutOfSyncPredicate) Update

Update implements default UpdateEvent filter for validating changes that require updates to the underlying API.

Jump to

Keyboard shortcuts

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