Documentation ¶
Index ¶
Constants ¶
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 (p *InverseReconcilePredicate) Create(e event.CreateEvent) bool
func (*InverseReconcilePredicate) Delete ¶ added in v1.122.0
func (p *InverseReconcilePredicate) Delete(e event.DeleteEvent) bool
func (*InverseReconcilePredicate) Generic ¶ added in v1.122.0
func (p *InverseReconcilePredicate) Generic(e event.GenericEvent) bool
func (*InverseReconcilePredicate) Update ¶ added in v1.122.0
func (p *InverseReconcilePredicate) Update(e event.UpdateEvent) bool
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
func (r *OptInToDirectReconciliation) ShouldReconcile(o *unstructured.Unstructured) bool
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 (p *ReconcilePredicate) Create(e event.CreateEvent) bool
func (*ReconcilePredicate) Delete ¶ added in v1.122.0
func (p *ReconcilePredicate) Delete(e event.DeleteEvent) bool
func (*ReconcilePredicate) Generic ¶ added in v1.122.0
func (p *ReconcilePredicate) Generic(e event.GenericEvent) bool
func (*ReconcilePredicate) Update ¶ added in v1.122.0
func (p *ReconcilePredicate) Update(e event.UpdateEvent) bool
type UnderlyingResourceOutOfSyncPredicate ¶
This predicate will react to changes only when there is something relevant to send to the underlying API.
func (UnderlyingResourceOutOfSyncPredicate) Delete ¶
func (UnderlyingResourceOutOfSyncPredicate) Delete(_ event.DeleteEvent) bool
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 ¶
func (UnderlyingResourceOutOfSyncPredicate) Update(e event.UpdateEvent) bool
Update implements default UpdateEvent filter for validating changes that require updates to the underlying API.