Documentation ¶
Index ¶
- Constants
- func ARMPerResourceSecretAnnotationChangedPredicate() predicate.Predicate
- func ARMReconcilerAnnotationChangedPredicate() predicate.Predicate
- func ClassifyResolverError(err error) error
- func GetReconcilePolicy(obj genruntime.MetaObject, log logr.Logger) annotations.ReconcilePolicyValue
- func HasAnnotationChanged(old *string, new *string) bool
- func HasReconcilePolicyAnnotationChanged(old *string, new *string) bool
- func LogObj(log logr.Logger, level int, note string, obj genruntime.MetaObject)
- func ParseReconcilePolicy(policy string) (annotations.ReconcilePolicyValue, error)
- type ARMOwnedResourceReconcilerCommon
- func (r *ARMOwnedResourceReconcilerCommon) ApplyOwnership(ctx context.Context, log logr.Logger, obj genruntime.ARMOwnedMetaObject) error
- func (r *ARMOwnedResourceReconcilerCommon) ClaimResource(ctx context.Context, log logr.Logger, obj genruntime.ARMOwnedMetaObject) error
- func (r *ARMOwnedResourceReconcilerCommon) NeedsToWaitForOwner(ctx context.Context, log logr.Logger, obj genruntime.ARMOwnedMetaObject) (bool, error)
- type ActionFunc
- type ReconcilerCommon
Constants ¶
const ( PollerResumeTokenAnnotation = "serviceoperator.azure.com/poller-resume-token" PollerResumeIDAnnotation = "serviceoperator.azure.com/poller-resume-id" LatestReconciledGeneration = "serviceoperator.azure.com/latest-reconciled-generation" )
Annotation labels, used to store metadata about the state of the resource.
Variables ¶
This section is empty.
Functions ¶
func ARMPerResourceSecretAnnotationChangedPredicate ¶
ARMPerResourceSecretAnnotationChangedPredicate creates a predicate that emits events when annotations interesting to the generic ARM reconciler are changed
func ARMReconcilerAnnotationChangedPredicate ¶
ARMReconcilerAnnotationChangedPredicate creates a predicate that emits events when annotations interesting to the generic ARM reconciler are changed
func ClassifyResolverError ¶
func GetReconcilePolicy ¶
func GetReconcilePolicy(obj genruntime.MetaObject, log logr.Logger) annotations.ReconcilePolicyValue
GetReconcilePolicy gets the reconcile-policy from the ReconcilePolicy
func HasAnnotationChanged ¶
HasAnnotationChanged returns true if the annotation has changed
func HasReconcilePolicyAnnotationChanged ¶
HasReconcilePolicyAnnotationChanged returns true if the reconcile-policy annotation has changed in a way that needs to trigger a reconcile.
func LogObj ¶
func LogObj(log logr.Logger, level int, note string, obj genruntime.MetaObject)
LogObj logs the obj
func ParseReconcilePolicy ¶
func ParseReconcilePolicy(policy string) (annotations.ReconcilePolicyValue, error)
ParseReconcilePolicy parses the provided reconcile policy.
Types ¶
type ARMOwnedResourceReconcilerCommon ¶
type ARMOwnedResourceReconcilerCommon struct { ReconcilerCommon ResourceResolver *resolver.Resolver }
func (*ARMOwnedResourceReconcilerCommon) ApplyOwnership ¶
func (r *ARMOwnedResourceReconcilerCommon) ApplyOwnership(ctx context.Context, log logr.Logger, obj genruntime.ARMOwnedMetaObject) error
func (*ARMOwnedResourceReconcilerCommon) ClaimResource ¶
func (r *ARMOwnedResourceReconcilerCommon) ClaimResource(ctx context.Context, log logr.Logger, obj genruntime.ARMOwnedMetaObject) error
ClaimResource ensures that the owner reference is set
func (*ARMOwnedResourceReconcilerCommon) NeedsToWaitForOwner ¶
func (r *ARMOwnedResourceReconcilerCommon) NeedsToWaitForOwner(ctx context.Context, log logr.Logger, obj genruntime.ARMOwnedMetaObject) (bool, error)
NeedsToWaitForOwner returns false if the owner doesn't need to be waited for, and true if it does.
type ActionFunc ¶
TODO: It's not clear to me that this file holds any value...
type ReconcilerCommon ¶
type ReconcilerCommon struct { KubeClient kubeclient.Client PositiveConditions *conditions.PositiveConditionBuilder ExpressionEvaluator asocel.ExpressionEvaluator }