mcs

package
v1.14.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const EndpointSliceControllerName = "endpointslice-controller"

EndpointSliceControllerName is the controller name that will be used when reporting events and metrics.

View Source
const ServiceExportControllerName = "service-export-controller"

ServiceExportControllerName is the controller name that will be used when reporting events and metrics.

View Source
const ServiceImportControllerName = "service-import-controller"

ServiceImportControllerName is the controller name that will be used when reporting events and metrics.

Variables

This section is empty.

Functions

func IndexField

func IndexField(mgr controllerruntime.Manager) error

IndexField registers Indexer functions to controller manager.

Types

type EndpointSliceController

type EndpointSliceController struct {
	client.Client
	EventRecorder      record.EventRecorder
	RateLimiterOptions ratelimiterflag.Options
}

EndpointSliceController is to collect EndpointSlice which reported by member cluster from executionNamespace to serviceexport namespace.

func (*EndpointSliceController) Reconcile

Reconcile performs a full reconciliation for the object referred to by the Request.

func (*EndpointSliceController) SetupWithManager

func (c *EndpointSliceController) SetupWithManager(mgr controllerruntime.Manager) error

SetupWithManager creates a controller and register to controller manager.

type ServiceExportController

type ServiceExportController struct {
	client.Client
	EventRecorder               record.EventRecorder
	RESTMapper                  meta.RESTMapper
	StopChan                    <-chan struct{}
	InformerManager             genericmanager.MultiClusterInformerManager
	WorkerNumber                int                 // WorkerNumber is the number of worker goroutines
	PredicateFunc               predicate.Predicate // PredicateFunc is the function that filters events before enqueuing the keys.
	ClusterDynamicClientSetFunc func(clusterName string, client client.Client) (*util.DynamicClusterClient, error)
	ClusterCacheSyncTimeout     metav1.Duration

	RateLimiterOptions ratelimiterflag.Options
	// contains filtered or unexported fields
}

ServiceExportController is to sync ServiceExport and report EndpointSlices of exported service to control-plane.

func (*ServiceExportController) Reconcile

Reconcile performs a full reconciliation for the object referred to by the Request.

func (*ServiceExportController) RunWorkQueue

func (c *ServiceExportController) RunWorkQueue()

RunWorkQueue initializes worker and run it, worker will process resource asynchronously.

func (*ServiceExportController) SetupWithManager

func (c *ServiceExportController) SetupWithManager(mgr controllerruntime.Manager) error

SetupWithManager creates a controller and register to controller manager.

type ServiceImportController

type ServiceImportController struct {
	client.Client
	EventRecorder      record.EventRecorder
	RateLimiterOptions ratelimiterflag.Options
}

ServiceImportController is to sync derived service from ServiceImport.

func (*ServiceImportController) Reconcile

Reconcile performs a full reconciliation for the object referred to by the Request.

func (*ServiceImportController) SetupWithManager

func (c *ServiceImportController) SetupWithManager(mgr controllerruntime.Manager) error

SetupWithManager creates a controller and register to controller manager.

Jump to

Keyboard shortcuts

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