- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IsValidSubsetKey (0.58 sec)
-
pilot/pkg/model/service_test.go
}, { subsetkey: "outbound|80|subset||hostname", expectErr: true, }, { subsetkey: "", expectErr: true, }, } for _, c := range cases { err := IsValidSubsetKey(c.subsetkey) if !err != c.expectErr { t.Errorf("got %v but want %v\n", err, c.expectErr) } } } func TestWorkloadInstanceEqual(t *testing.T) { exampleInstance := &WorkloadInstance{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 20:38:02 UTC 2024 - 13.9K bytes - Viewed (0) -
pilot/pkg/model/service.go
return string(direction) + "_." + strconv.Itoa(port) + "_." + subsetName + "_." + string(hostname) } // IsValidSubsetKey checks if a string is valid for subset key parsing. func IsValidSubsetKey(s string) bool { return strings.Count(s, "|") == 3 } // IsDNSSrvSubsetKey checks whether the given key is a DNSSrv key (built by BuildDNSSrvSubsetKey).
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 46.3K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route.go
// Otherwise there are multiple destination clusters and destination host is not clear. For that case // return virtual service name:port/uri as substitute. if c := in.GetRoute().GetCluster(); model.IsValidSubsetKey(c) { // Parse host and port from cluster name. _, _, h, p := model.ParseSubsetKey(c) return string(h) + ":" + strconv.Itoa(p) + path } return vsName + ":" + strconv.Itoa(port) + path }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 56.1K bytes - Viewed (0)