- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for instancesByPort (0.68 sec)
-
pilot/pkg/model/push_context.go
svcKey := service.Key() for port, inst := range instances { if _, exists := ps.ServiceIndex.instancesByPort[svcKey]; !exists { ps.ServiceIndex.instancesByPort[svcKey] = make(map[int][]*IstioEndpoint) } ps.ServiceIndex.instancesByPort[svcKey][port] = append(ps.ServiceIndex.instancesByPort[svcKey][port], inst...) } } // StatusJSON implements json.Marshaller, with a lock.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 09:02:11 UTC 2024 - 91.8K bytes - Viewed (0) -
pilot/pkg/model/push_context_test.go
EndpointPort: 8000, ServicePortName: "uds", }, }, }, }, }, } ps.initServiceRegistry(env, nil) instancesByPort := ps.ServiceIndex.instancesByPort[svc5_1.Key()] assert.Equal(t, len(instancesByPort), 2) } func TestGetHostsFromMeshConfig(t *testing.T) { ps := NewPushContext() env := &Environment{Watcher: mesh.NewFixedWatcher(&meshconfig.MeshConfig{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Apr 21 17:42:54 UTC 2024 - 95.3K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/controller_test.go
t.Fatalf("eds update after adding workload entry did not match expected list. got %v, want %v", gotEndpointIPs, expectedEndpointIPs) } // Check if InstancesByPort returns the same list converted := controller.Services() if len(converted) != 1 { t.Fatalf("failed to get services (%v), converted", converted) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 85K bytes - Viewed (0)