Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MostSpecificHostMatch (0.46 sec)

  1. pilot/pkg/model/config.go

    			out = meta.Namespace + "/" + gwname[i+1:]
    		}
    	}
    	return out
    }
    
    // MostSpecificHostMatch compares the maps of specific and wildcard hosts to the needle, and returns the longest element
    // matching the needle and it's value, or false if no element in the maps matches the needle.
    func MostSpecificHostMatch[V any](needle host.Name, specific map[host.Name]V, wildcard map[host.Name]V) (host.Name, V, bool) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  2. pilot/pkg/model/push_context.go

    	if proxyNameSpace != ps.Mesh.RootNamespace {
    		// search through the DestinationRules in proxy's namespace first
    		if ps.destinationRuleIndex.namespaceLocal[proxyNameSpace] != nil {
    			if _, drs, ok := MostSpecificHostMatch(service.Hostname,
    				ps.destinationRuleIndex.namespaceLocal[proxyNameSpace].specificDestRules,
    				ps.destinationRuleIndex.namespaceLocal[proxyNameSpace].wildcardDestRules,
    			); ok {
    				return drs
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 09:02:11 UTC 2024
    - 91.8K bytes
    - Viewed (0)
  3. pilot/pkg/model/sidecar.go

    				if !exists {
    					fqdnVirtualServiceHostIndex[host.Name(h)] = vs
    				}
    			}
    		}
    	}
    
    	mostSpecificWildcardVsIndex := make(map[host.Name]types.NamespacedName)
    	comparator := MostSpecificHostMatch[config.Config]
    	if features.PersistOldestWinsHeuristicForVirtualServiceHostMatching {
    		comparator = OldestMatchingHost
    	}
    	for _, svc := range services {
    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