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( ctx context.Context, service *corev1.Service, pods corev1sets.PodSet, nodes corev1sets.NodeSet, workloads discoveryv1alpha2sets.WorkloadSet, meshes discoveryv1alpha2sets.MeshSet, endpoints corev1sets.EndpointsSet, ) *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() TrafficTargetDetector
Click to show internal directories.
Click to hide internal directories.