cluster

package
v1.137.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 18 Imported by: 1

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.

func (*Reconciler) Reconcile

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

Reconcile 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.

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

type StoreCluster func(cluster.Cluster)

StoreCluster is a function that stores the given cluster object.

Jump to

Keyboard shortcuts

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