Documentation
¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager) error
- func (r *Reconciler) MapGardenToExtensions(log logr.Logger) handler.MapFunc
- 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 ¶
const ControllerName = "extension-required-runtime"
ControllerName is the name of this controller.
Variables ¶
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) MapGardenToExtensions ¶ added in v1.114.0
func (r *Reconciler) MapGardenToExtensions(log logr.Logger) handler.MapFunc
MapGardenToExtensions returns a mapping function that maps a given garden resource to all related extensions.
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.