runtime

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile performs the main reconciliation logic.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL