discovery

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Overview

Package discovery contains structures, interfaces and utility functions useful for the discovery component.

Index

Constants

View Source
const (
	// TenantNamespaceLabel used to mark the tenant namespaces.
	TenantNamespaceLabel = "discovery.liqo.io/tenant-namespace"

	// ClusterIDLabel used as key to indicate which cluster a resource is referenced to.
	ClusterIDLabel = "discovery.liqo.io/cluster-id"
	// AuthTokenLabel used to mark secrets containing an auth token.
	AuthTokenLabel = "discovery.liqo.io/auth-token"
	// DiscoveryTypeLabel used to mark the discovery type.
	DiscoveryTypeLabel = "discovery.liqo.io/discovery-type"
	// SearchDomainLabel used to mark the search domain linked to the foreign cluster.
	SearchDomainLabel = "discovery.liqo.io/searchdomain"
)
View Source
const (
	// LastUpdateAnnotation marks the last update time of a ForeignCluster resource, needed by the garbage collection.
	LastUpdateAnnotation string = "LastUpdate"
)

Variables

This section is empty.

Functions

func DeploymentLabelSelector added in v0.3.0

func DeploymentLabelSelector() labels.Selector

DeploymentLabelSelector returns the label selector associated with the discovery deployment/pod.

func GetAddress

func GetAddress(node *v1.Node) (string, error)

GetAddress returns an address for a Node.

func GetAddressFromNodeList

func GetAddressFromNodeList(nodes []v1.Node) (string, error)

GetAddressFromNodeList returns an address from a Node pool.

Types

type Type added in v0.3.0

type Type string

Type indicates how a ForeignCluster has been discovered.

const (
	// LanDiscovery value.
	LanDiscovery Type = "LAN"
	// WanDiscovery value.
	WanDiscovery Type = "WAN"
	// ManualDiscovery value.
	ManualDiscovery Type = "Manual"
	// IncomingPeeringDiscovery value.
	IncomingPeeringDiscovery Type = "IncomingPeering"
)

Jump to

Keyboard shortcuts

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