detector

package
v0.10.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0 Imports: 12 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
	// TrafficTarget 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 TrafficTargetDetector

type TrafficTargetDetector interface {
	DetectTrafficTarget(
		service *corev1.Service,
		workloads v1alpha2sets.WorkloadSet,
		meshes v1alpha2sets.MeshSet,
	) *v1alpha2.TrafficTarget
}

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

func NewTrafficTargetDetector

func NewTrafficTargetDetector(ctx context.Context) TrafficTargetDetector

Jump to

Keyboard shortcuts

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