Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ServicesForHostname (0.23 sec)

  1. pilot/pkg/networking/core/cluster.go

    		dr := prevCfg.Spec.(*networking.DestinationRule)
    		services = append(services, proxy.SidecarScope.ServicesForHostname(host.Name(dr.Host))...)
    	} else {
    		dr := cfg.Spec.(*networking.DestinationRule)
    		// Destinationrule was updated. Find matching services from updated destinationrule.
    		services = append(services, proxy.SidecarScope.ServicesForHostname(host.Name(dr.Host))...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 33K bytes
    - Viewed (0)
  2. pilot/pkg/model/sidecar.go

    	}
    	return sc.destinationRulesByNames[types.NamespacedName{
    		Name:      name,
    		Namespace: namespace,
    	}]
    }
    
    // ServicesForHostname returns a list of services that fall under the hostname provided. This hostname
    // can be a wildcard.
    func (sc *SidecarScope) ServicesForHostname(hostname host.Name) []*Service {
    	if !hostname.IsWildCarded() {
    		if svc, f := sc.servicesByHostname[hostname]; f {
    			return []*Service{svc}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
Back to top