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
Click to show internal directories.
Click to hide internal directories.