- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for convertWorkloadEntryToServiceInstances (0.53 sec)
-
pilot/pkg/serviceregistry/serviceentry/conversion.go
}, Service: service, ServicePort: convertPort(servicePort), } } // convertWorkloadEntryToServiceInstances translates a WorkloadEntry into ServiceEndpoints. This logic is largely the // same as the ServiceEntry convertServiceEntryToInstances. func (s *Controller) convertWorkloadEntryToServiceInstances(wle *networking.WorkloadEntry, services []*model.Service,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 02:03:58 UTC 2024 - 16.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceentry/controller.go
if wi.DNSServiceEntryOnly && !isDNSTypeServiceEntry(se) { log.Debugf("skip selecting workload instance %v/%v for DNS service entry %v", wi.Namespace, wi.Name, se.Hosts) continue } instance := s.convertWorkloadEntryToServiceInstances(wle, services, se, &key, s.Cluster()) instancesUpdated = append(instancesUpdated, instance...) parentKey := configKeyWithParent{ configKey: key, parent: namespacedName, }
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/conversion_test.go
t.Run(tt.name, func(t *testing.T) { services := convertServices(*tt.se) s := &Controller{meshWatcher: mesh.NewFixedWatcher(mesh.DefaultMeshConfig())} instances := s.convertWorkloadEntryToServiceInstances(tt.wle, services, tt.se.Spec.(*networking.ServiceEntry), &configKey{}, tt.clusterID) sortServiceInstances(instances) sortServiceInstances(tt.out)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 39K bytes - Viewed (0)