- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for serviceForHostname (0.21 sec)
-
pilot/pkg/networking/core/listener_waypoint.go
const ( h2KeepaliveInterval = 10 * time.Second h2KeepaliveTimeout = 20 * time.Second ) func (lb *ListenerBuilder) serviceForHostname(name host.Name) *model.Service { return lb.push.ServiceForHostname(lb.node, name) } func (lb *ListenerBuilder) buildWaypointInbound() []*listener.Listener { listeners := []*listener.Listener{} // We create 3 listeners:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jun 14 04:34:37 UTC 2024 - 27.6K bytes - Viewed (0) -
pilot/pkg/networking/core/networkfilter.go
MaxDownstreamConnectionDuration: destinationRule.GetTrafficPolicy().GetConnectionPool().GetTcp().GetMaxConnectionDuration(), } for _, route := range routes { service := lb.push.ServiceForHostname(lb.node, host.Name(route.Destination.Host)) if route.Weight > 0 { clusterName := istioroute.GetDestinationCluster(route.Destination, service, port.Port)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.7K bytes - Viewed (0) -
pilot/pkg/networking/grpcgen/cds.go
if hostname == "" || portNum == 0 { return nil, fmt.Errorf("failed parsing subset key: %s", defaultClusterName) } // try to resolve the service and port var port *model.Port svc := push.ServiceForHostname(node, hostname) if svc == nil { return nil, fmt.Errorf("cds gen for %s: did not find service for cluster %s", node.ID, defaultClusterName) } port, ok := svc.Ports.GetByPort(portNum) if !ok {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 9.2K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster.go
) ([]*model.Service, []string) { var deletedClusters []string var services []*model.Service service := push.ServiceForHostname(proxy, host.Name(key.Name)) // push.ServiceForHostname will return nil if the proxy doesn't care about the service OR it was deleted. // we can cross-reference with WatchedResources to figure out which services were deleted. if service == nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 33K bytes - Viewed (0) -
pilot/pkg/xds/endpoints/endpoint_builder.go
} func NewEndpointBuilder(clusterName string, proxy *model.Proxy, push *model.PushContext) EndpointBuilder { dir, subsetName, hostname, port := model.ParseSubsetKey(clusterName) svc := push.ServiceForHostname(proxy, hostname) var dr *model.ConsolidatedDestRule if svc != nil { dr = proxy.SidecarScope.DestinationRule(model.TrafficDirectionOutbound, proxy, svc.Hostname) } return *NewCDSEndpointBuilder(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 28 02:18:19 UTC 2024 - 26.1K bytes - Viewed (0) -
pilot/pkg/model/push_context.go
func (ps *PushContext) GetAllServices() []*Service { return ps.servicesExportedToNamespace(NamespaceAll) } // ServiceForHostname returns the service associated with a given hostname following SidecarScope func (ps *PushContext) ServiceForHostname(proxy *Proxy, hostname host.Name) *Service { if proxy != nil && proxy.SidecarScope != nil { return proxy.SidecarScope.servicesByHostname[hostname] }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 91.8K bytes - Viewed (0) -
pilot/pkg/networking/core/gateway.go
// we should fallback to pick one service which is visible to the ConfigNamespace of node. if service == nil { service = push.ServiceForHostname(node, hostname) } nameToServiceMap[hostname] = service } for _, httpRoute := range vs.Http { if httpRoute.GetMirror() != nil { addService(host.Name(httpRoute.GetMirror().GetHost())) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon May 06 04:44:06 UTC 2024 - 46.4K bytes - Viewed (0)