Documentation
¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error
- func (r *Reconciler) MapObjectKindToExtensions(objectKind string, newObjectListFunc func() client.ObjectList) mapper.MapFunc
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ( // ExtensionRequiredReason is the reason to indicate that the extension is required. ExtensionRequiredReason = "ExtensionRequired" // ExtensionNotRequiredReason is the reason to indicate that the extension is not required. ExtensionNotRequiredReason = "ExtensionNotRequired" )
View Source
const ControllerName = "extension-required"
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 *config.OperatorConfiguration 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 ¶
AddToManager adds Reconciler to the given manager.
func (*Reconciler) MapObjectKindToExtensions ¶
func (r *Reconciler) MapObjectKindToExtensions(objectKind string, newObjectListFunc func() client.ObjectList) mapper.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.