- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for instance_key (0.14 sec)
-
pilot/pkg/serviceregistry/serviceentry/controller.go
) // instancesKey acts as a key to identify all instances for a given hostname/namespace pair // This is mostly used as an index type instancesKey struct { hostname host.Name namespace string } type octetPair struct { thirdOctet int fourthOctet int } func makeInstanceKey(i *model.ServiceInstance) instancesKey { return instancesKey{i.Service.Hostname, i.Service.Attributes.Namespace}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 36.8K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/store_test.go
namespace: "dns", name: "dns-round-robin-2", }, } store.addInstances(cpKey, instances) assert.Equal(t, store.getByKey(instancesKey{ hostname: "example.com", namespace: "dns", }), expected) assert.Equal(t, store.getByKey(instancesKey{ hostname: "example.com", namespace: otherNs.Namespace, }), otherNsExpected)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 8.1K bytes - Viewed (0) -
pkg/test/framework/components/echo/echotest/filters_test.go
} expected := map[string]struct{}{} for _, i := range want { expected[instanceKey(i)] = struct{}{} } unexpected := map[string]struct{}{} for _, i := range all { k := instanceKey(i) if _, ok := expected[k]; !ok { unexpected[k] = struct{}{} } } for _, i := range got { k := instanceKey(i) // just remove the items rather than looping over expected, if anythings left we missed it
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 13.1K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller_test.go
expectServiceInstances(t, sd, selector, 0, instances) expectEvents(t, events, Event{Type: "eds", ID: "selector.com", Namespace: selector.Namespace, EndpointCount: 2}) key := instancesKey{namespace: selector.Namespace, hostname: "selector.com"} namespacedName := selector.NamespacedName() if len(sd.serviceInstances.ip2instance) != 1 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 92.9K bytes - Viewed (0)