Documentation ¶
Overview ¶
Package managed provides a custom implementation of RetryingCriticalAnnotationUpdater from the crossplane-runtime package managed (github.com/crossplane/crossplane-runtime/pkg/reconciler/managed/api.go) This custom implementation is currently used in all controllers to revert back to the behavior before this breaking change from crossplane-runtime:v1.14.0 (https://github.com/crossplane/crossplane-runtime/pull/526) See also https://github.com/crossplane-contrib/provider-aws/pull/1953 for more information
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RetryingCriticalAnnotationUpdater ¶
type RetryingCriticalAnnotationUpdater struct {
// contains filtered or unexported fields
}
A RetryingCriticalAnnotationUpdater is a CriticalAnnotationUpdater that retries annotation updates in the face of API server errors.
func NewRetryingCriticalAnnotationUpdater ¶
func NewRetryingCriticalAnnotationUpdater(c client.Client) *RetryingCriticalAnnotationUpdater
NewRetryingCriticalAnnotationUpdater returns a CriticalAnnotationUpdater that retries annotation updates in the face of API server errors.
func (*RetryingCriticalAnnotationUpdater) UpdateCriticalAnnotations ¶
func (u *RetryingCriticalAnnotationUpdater) UpdateCriticalAnnotations(ctx context.Context, o client.Object) error
UpdateCriticalAnnotations updates (i.e. persists) the annotations of the supplied Object. It retries in the face of any API server error several times in order to ensure annotations that contain critical state are persisted. Any pending changes to the supplied Object's spec, status, or other metadata are reset to their current state according to the API server.