- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ShardsForService (0.16 sec)
-
pilot/pkg/model/push_context.go
} svcKey := s.Key() if _, ok := ps.ServiceIndex.instancesByPort[svcKey]; !ok { ps.ServiceIndex.instancesByPort[svcKey] = make(map[int][]*IstioEndpoint) } shards, ok := env.EndpointIndex.ShardsForService(string(s.Hostname), s.Attributes.Namespace) if ok { instancesByPort := shards.CopyEndpoints(portMap, ports)
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/serviceregistry/serviceregistry_test.go
}, retry.Timeout(time.Second*2)) }) } } func GetEndpointsForPort(s *model.Service, endpoints *model.EndpointIndex, port int) []*model.IstioEndpoint { shards, ok := endpoints.ShardsForService(string(s.Hostname), s.Attributes.Namespace) if !ok { return nil } var pn string for _, p := range s.Ports { if p.Port == port { pn = p.Name break } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 51.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller_test.go
sd.workloadEntryHandler(config.Config{}, *wle2, model.EventDelete) } } func GetEndpointsForPort(s *model.Service, endpoints *model.EndpointIndex, port int) []*model.IstioEndpoint { shards, ok := endpoints.ShardsForService(string(s.Hostname), s.Attributes.Namespace) if !ok { return nil } var pn string for _, p := range s.Ports { if p.Port == port { pn = p.Name break } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 15:31:09 UTC 2024 - 92.9K bytes - Viewed (0)