Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for serviceInstance (0.36 sec)

  1. pilot/pkg/serviceregistry/serviceentry/store.go

    type serviceInstancesStore struct {
    	ip2instance map[string][]*model.ServiceInstance
    	// service instances by hostname -> config
    	instances map[instancesKey]map[configKeyWithParent][]*model.ServiceInstance
    	// instances only for serviceentry
    	instancesBySE map[types.NamespacedName]map[configKey][]*model.ServiceInstance
    	// instancesByHostAndPort tells whether the host has instances.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/serviceentry/store_test.go

    	store := serviceInstancesStore{
    		ip2instance:            map[string][]*model.ServiceInstance{},
    		instances:              map[instancesKey]map[configKeyWithParent][]*model.ServiceInstance{},
    		instancesBySE:          map[types.NamespacedName]map[configKey][]*model.ServiceInstance{},
    		instancesByHostAndPort: sets.Set[hostPort]{},
    	}
    	instances := []*model.ServiceInstance{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. pilot/pkg/model/validation_test.go

    			Labels:       lbls,
    		}
    	}
    
    	cases := []struct {
    		name     string
    		instance *ServiceInstance
    		valid    bool
    	}{
    		{
    			name: "nil service",
    			instance: &ServiceInstance{
    				Endpoint: endpointWithLabels(labels.Instance{}),
    			},
    		},
    		{
    			name: "bad label",
    			instance: &ServiceInstance{
    				Service:  service1,
    				Endpoint: endpointWithLabels(labels.Instance{"*": "-"}),
    			},
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 23 19:35:35 UTC 2023
    - 4K bytes
    - Viewed (0)
  4. tests/fuzz/pilot_model_fuzzer.go

    	// Create service instances
    	serviceInstances := make([]*model.ServiceInstance, 0, 20)
    	number, err := f.GetInt()
    	if err != nil {
    		return 0
    	}
    	// We allow a maximum of 20 service instances
    	numberOfS := number % 20
    	for i := 0; i < numberOfS; i++ {
    		si, err := NewSI(f)
    		if err != nil {
    			return 0
    		}
    		serviceInstances = append(serviceInstances, si)
    	}
    
    	// Create services
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 08 18:13:06 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  5. pkg/config/analysis/analyzers/multicluster/service.go

    		}
    		inconsistents, errors := findInconsistencies(clusterServices)
    		if len(inconsistents) > 0 {
    			var serviceInstance *resource.Instance
    			for _, r := range clusterServices {
    				if r != nil {
    					serviceInstance = r
    					break
    				}
    			}
    			message := msg.NewMultiClusterInconsistentService(serviceInstance, fullname.Name.String(),
    				fullname.Namespace.String(), inconsistents, errors)
    
    			c.Report(gvk.Service, message)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. tools/bug-report/pkg/testdata/output/multi_line_entries.log

    2020-06-29T23:37:27.287957Z...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 01 20:55:53 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/service-provider/src/main/java/org/gradle/internal/service/ServiceRegistration.java

         * @param serviceType The type to make this service visible as.
         * @param serviceInstance The service implementation.
         */
        <T> void add(Class<T> serviceType, T serviceInstance);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/mock/discovery.go

    func MakeServiceInstance(service *model.Service, port *model.Port, version int, locality model.Locality) *model.ServiceInstance {
    	if service.External() {
    		return nil
    	}
    
    	// we make port 80 same as endpoint port, otherwise, it's distinct
    	target := port.Port
    	if target != 80 {
    		target += 1000
    	}
    
    	return &model.ServiceInstance{
    		Endpoint: &model.IstioEndpoint{
    			Address:         MakeIP(service, version),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 18:40:05 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. pilot/pkg/model/fuzz_test.go

    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    func FuzzDeepCopyService(f *testing.F) {
    	fuzzDeepCopy[*Service](f)
    }
    
    func FuzzDeepCopyServiceInstance(f *testing.F) {
    	fuzzDeepCopy[*ServiceInstance](f)
    }
    
    func FuzzDeepCopyWorkloadInstance(f *testing.F) {
    	fuzzDeepCopy[*WorkloadInstance](f)
    }
    
    func FuzzDeepCopyIstioEndpoint(f *testing.F) {
    	fuzzDeepCopy[*IstioEndpoint](f)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 17:36:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/model/internal/fixture/ProjectRegistrySpec.groovy

            return NODE_INITIALIZER_REGISTRY
        }
    
        protected <T> void registerService(String path, Class<T> type, T instance) {
            registry.register(ModelRegistrations.serviceInstance(ModelReference.of(path, type), instance).descriptor("register service '$path'").build())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top