# Functions
ApplyControllerBuilderOptions applies the given options to the controller builder.
BuilderOptions returns a functional set of options with conservative defaults.
CreateOrGetWithRetry will retry to create source multi times if encounter error however if error is alreadyExist then will get the resource and return it.
DefaultOptions returns the default options for the controller.
DefaultRateLimiter returns a workqueue rate limiter with a starting value of 2 seconds opposed to controller-runtime's default one of 1 millisecond.
GetNumRequeues gets numRequeue from the context.
HasControllerReferenceByObjectReference has controller owner reference.
MaxConCurrentReconciles sets the max concurrent reconciles.
NewLazyLoader constructs new LazyLoader for controllers.
NewReconcilerWrapper creates a new scheduleReconciler with the provided Reconciler and ScheduleOptions.
RateLimiter sets the rate limiter.
RateLimiterCtx retrieves a RateLimiter from context.
ReconcileRequestCtx retrieves a Request key from context returns an empty object if none.
SyncPeriodResultFunc contruct reconcile.Result to requeue automatically the RequeueAfter value is set by configKey in `FeatureFlag`.
WithBuilderOptions returns a ControllerBuilderOption that applies the given options to the controller builder.
WithNumRequeues adds the numRequeues to the context.
WithRateLimiter stores a RateLimiter into context.
WithReconcileRequest stores a Request key into context.
# Constants
DefaultMaxConcurrentReconciles is the default number of max concurrent reconciles.
MessageShortenLength default message shorten length in event.
# Structs
ControllerManager is just like sigs.k8s.io/controller-runtime.Manager and decorate GetEventRecorderFor function to shorten message length.
EventRecorder is just like k8s.io/client-go/tools/record.EventRecorder, but will shorten message length according to MessageShortenLen.
SecretDataChangedPredicate implements a default update predicate function on secret data change.
No description provided by the author
# Interfaces
No description provided by the author
DependencyCheckerInterface is the interface for checking dependencies.
Interface is a basic interface that every reconciler should implement to create a new controller and startup in the controller manager.
LazyLoader loads whenever dependencies are ready.
SetupChecker controllers with dependencies on other resources will need to implement this interface to allow lazy loading.
# Type aliases
BuilderOptionFunc is a function that can be used to configure the controller builder options.
ControllerBuilderOption is a function that can be used to configure the controller builder.
No description provided by the author
No description provided by the author
No description provided by the author