Documentation
¶
Index ¶
Constants ¶
View Source
const ControllerName = "virtual-cluster-registrar"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
Manager manager.Manager
StoreCluster StoreCluster
VirtualClientConnection componentbaseconfigv1alpha1.ClientConnectionConfiguration
// contains filtered or unexported fields
}
Reconciler creates the cluster.Cluster object for the virtual garden cluster and adds it to the manager after it received the rest.Config via the Channel.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(mgr manager.Manager, channel <-chan event.TypedGenericEvent[*rest.Config]) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) EventHandler ¶
func (r *Reconciler) EventHandler() handler.TypedEventHandler[*rest.Config, Request]
EventHandler returns a handler for rest.Config events.
type Request ¶
type Request struct {
// RESTConfig is the rest.Config for the virtual garden cluster.
RESTConfig *rest.Config
}
Request contains the information necessary to create the cluster.Cluster object for the virtual garden.
type StoreCluster ¶
StoreCluster is a function that stores the given cluster object.
Click to show internal directories.
Click to hide internal directories.