Documentation
¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager) error
- func (r *Reconciler) MapObjectKindToExtensions(log logr.Logger, objectKind string, newObjectListFunc func() client.ObjectList) handler.MapFunc
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ControllerName = "extension-required-runtime"
ControllerName is the name of this controller.
Variables ¶
View Source
var RequeueExtensionKindNotCalculated = 2 * time.Second
RequeueExtensionKindNotCalculated is the time after which an extension will be requeued if the extension kind has not been processed yet. Exposed for testing.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { Client client.Client Config operatorconfigv1alpha1.ExtensionRequiredRuntimeControllerConfiguration Lock *sync.RWMutex KindToRequiredTypes map[string]sets.Set[string] // contains filtered or unexported fields }
Reconciler reconciles Extensions to determine their required state.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) MapObjectKindToExtensions ¶
func (r *Reconciler) MapObjectKindToExtensions(log logr.Logger, objectKind string, newObjectListFunc func() client.ObjectList) handler.MapFunc
MapObjectKindToExtensions returns a mapper function for the given 'extensions.gardener.cloud' extension kind that lists all existing resources of the given kind and stores the respective types in the `KindToRequiredTypes` map. Afterwards, it returns all 'operator.gardener.cloud' Extensions that responsible for the given kind.
Click to show internal directories.
Click to hide internal directories.