Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. pilot/pkg/model/config_test.go

    			actual, value, found := model.MostSpecificHostMatch(tt.needle, specific, wildcard)
    			if tt.want != "" && !found {
    				t.Fatalf("model.MostSpecificHostMatch(%q, %v) = %v, %v, %t; want: %v", tt.needle, tt.in, actual, value, found, tt.want)
    			} else if actual != tt.want {
    				t.Fatalf("model.MostSpecificHostMatch(%q, %v) = %v, %v, %t; want: %v", tt.needle, tt.in, actual, value, found, tt.want)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 12:54:10 UTC 2023
    - 19K bytes
    - Viewed (0)
  2. 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)
  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