Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseReconciler ¶
type BaseReconciler struct { // Client is the controller-runtime client client.Client // Scheme is the CR scheme Scheme *runtime.Scheme // Controller is a controller-runtime controller Controller controller.Controller // contains filtered or unexported fields }
BaseReconciler contains data needed to reconcile a DNS object.
func CreateControllerAndAddItToManager ¶
func CreateControllerAndAddItToManager(mgr controllerruntime.Manager, controllerConfig ControllerConfig) (*BaseReconciler, error)
CreateControllerAndAddItToManager creates the base controller and adds it to the manager.
func (*BaseReconciler) GetLastWatchEvent ¶
func (r *BaseReconciler) GetLastWatchEvent(reconcilingResourceNSN types.NamespacedName) *controllerspi.WatchEvent
GetLastWatchEvent gets the last WatchEvent for the resource
type ControllerConfig ¶
type ControllerConfig struct { controllerspi.Finalizer controllerspi.Reconciler controllerspi.EventFilter controllerspi.Watcher controller.Options }
ControllerConfig specifies the config of the controller using this base controller
type WatchContext ¶
type WatchContext struct {
// contains filtered or unexported fields
}
WatchContext provides context to a watcher There is a WatchContext for each resource being watched by each instance of a CR.
func (*WatchContext) Watch ¶
func (w *WatchContext) Watch() error
Watch for a specific resource type
Click to show internal directories.
Click to hide internal directories.