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