controller

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterIPService   = "ClusterIPService"
	HeadlessServicePod = "HeadlessServicePod"
)
View Source
const (
	LegacySourceNameLabel    = "lighthouse.submariner.io/sourceName"
	LegacySourceClusterLabel = "lighthouse.submariner.io/sourceCluster"
)

Variables

This section is empty.

Functions

func FindServiceExportStatusCondition added in v0.14.0

func FindServiceExportStatusCondition(conditions []mcsv1a1.ServiceExportCondition,
	condType mcsv1a1.ServiceExportConditionType,
) *mcsv1a1.ServiceExportCondition

func GetGlobalIngressIPObj added in v0.10.1

func GetGlobalIngressIPObj() *unstructured.Unstructured

Types

type AgentConfig added in v0.9.0

type AgentConfig struct {
	ServiceImportCounterName string
	ServiceExportCounterName string
}

type AgentSpecification

type AgentSpecification struct {
	ClusterID        string
	Namespace        string
	GlobalnetEnabled bool `split_words:"true"`
	Uninstall        bool
}

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(spec *AgentSpecification, syncerConf broker.SyncerConfig, syncerMetricNames AgentConfig) (*Controller, error)

func (*Controller) Cleanup added in v0.12.0

func (a *Controller) Cleanup() error

func (*Controller) Start added in v0.6.0

func (a *Controller) Start(stopCh <-chan struct{}) error

type EndpointController added in v0.7.0

type EndpointController struct {
	// contains filtered or unexported fields
}

Each EndpointController watches for the Endpoints that backs a Service and have a ServiceImport by using a filter that listen only for the Service's endpoints. It creates an EndpointSlice corresponding to an Endpoints object that is distributed to other clusters.

type EndpointSliceController added in v0.15.0

type EndpointSliceController struct {
	// contains filtered or unexported fields
}

EndpointSliceController encapsulates a syncer that syncs EndpointSlices to and from that broker.

type IngressIP added in v0.10.1

type IngressIP struct {
	// contains filtered or unexported fields
}

type ServiceExportClient added in v0.15.0

type ServiceExportClient struct {
	dynamic.NamespaceableResourceInterface
	// contains filtered or unexported fields
}

type ServiceImportAggregator added in v0.15.0

type ServiceImportAggregator struct {
	// contains filtered or unexported fields
}

type ServiceImportController added in v0.7.0

type ServiceImportController struct {
	// contains filtered or unexported fields
}

The ServiceImportController encapsulates two resource syncers; one that watches for local cluster ServiceImports from the submariner namespace and creates/updates the aggregated ServiceImport on the broker; the other that syncs aggregated ServiceImports from the broker to the local service namespace. It also creates an EndpointController.

func (*ServiceImportController) Delete added in v0.15.0

func (*ServiceImportController) Distribute added in v0.15.0

func (c *ServiceImportController) Distribute(obj runtime.Object) error

type ServiceImportMigrator added in v0.15.0

type ServiceImportMigrator struct {
	// contains filtered or unexported fields
}

ServiceImportMigrator handles migration from the legacy per-cluster ServiceImports to aggregated ServiceImports added in 0.15.

Jump to

Keyboard shortcuts

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