detector

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO: allow for specifying specific meshes.
	// Currently this annotation assumes that there is only one mesh per cluster, and therefore the corresponding
	// Destination will be associated with that mesh.
	DiscoveryMeshAnnotation = "discovery.mesh.gloo.solo.io/enabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DestinationDetector

type DestinationDetector interface {
	DetectDestination(
		ctx context.Context,
		service *corev1.Service,
		pods corev1sets.PodSet,
		nodes corev1sets.NodeSet,
		workloads discoveryv1sets.WorkloadSet,
		meshes discoveryv1sets.MeshSet,
		endpoints corev1sets.EndpointsSet,
	) *v1.Destination
}

the DestinationDetector detects Destinations from services whose backing pods are injected with a Mesh sidecar. If no Mesh is detected, nil is returned

func NewDestinationDetector

func NewDestinationDetector() DestinationDetector

Jump to

Keyboard shortcuts

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