mcs

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const EndpointSliceControllerName = "endpointslice-controller"

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

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

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

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

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

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointSliceController

type EndpointSliceController struct {
	client.Client
	EventRecorder record.EventRecorder
}

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
	// 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
}

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