Documentation ¶
Index ¶
- Constants
- func NewRateLimiter(minBackoff time.Duration, maxBackoff time.Duration) workqueue.RateLimiter
- func RegisterAll(mgr ctrl.Manager, fieldIndexer client.FieldIndexer, ...) error
- func RegisterWebhooks(mgr ctrl.Manager, objs []client.Object) error
- type GenericReconciler
- func (gr *GenericReconciler) CommitUpdate(ctx context.Context, log logr.Logger, original genruntime.MetaObject, ...) error
- func (gr *GenericReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (gr *GenericReconciler) WriteReadyConditionError(ctx context.Context, log logr.Logger, obj genruntime.MetaObject, ...) error
- type LoggerFactory
- type Options
Constants ¶
View Source
const GenericReconcilerFinalizer = "serviceoperator.azure.com/finalizer"
View Source
const NamespaceAnnotation = "serviceoperator.azure.com/operator-namespace"
NamespaceAnnotation defines the annotation name to use when marking a resource with the namespace of the managing operator.
Variables ¶
This section is empty.
Functions ¶
func NewRateLimiter ¶
NewRateLimiter creates a new workqueue.Ratelimiter for use controlling the speed of reconciliation. It throttles individual requests exponentially and also controls for multiple requests.
func RegisterAll ¶
func RegisterAll( mgr ctrl.Manager, fieldIndexer client.FieldIndexer, kubeClient kubeclient.Client, positiveConditions *conditions.PositiveConditionBuilder, objs []*registration.StorageType, options Options) error
Types ¶
type GenericReconciler ¶
type GenericReconciler struct { Reconciler genruntime.Reconciler LoggerFactory LoggerFactory KubeClient kubeclient.Client Recorder record.EventRecorder Config config.Values GVK schema.GroupVersionKind PositiveConditions *conditions.PositiveConditionBuilder RequeueIntervalCalculator interval.Calculator }
GenericReconciler reconciles resources
func (*GenericReconciler) CommitUpdate ¶
func (gr *GenericReconciler) CommitUpdate(ctx context.Context, log logr.Logger, original genruntime.MetaObject, obj genruntime.MetaObject) error
func (*GenericReconciler) WriteReadyConditionError ¶
func (gr *GenericReconciler) WriteReadyConditionError(ctx context.Context, log logr.Logger, obj genruntime.MetaObject, err *conditions.ReadyConditionImpactingError) error
type LoggerFactory ¶
type LoggerFactory func(genruntime.MetaObject) logr.Logger
Click to show internal directories.
Click to hide internal directories.