- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MostSpecificHostMatch (0.23 sec)
-
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) -
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)