Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for makeService (0.42 sec)

  1. pkg/registry/core/service/storage/storage_test.go

    		input: svcTestCase{
    			svc: svctest.MakeService("foo", svctest.SetTypeExternalName),
    		},
    		output: svctest.MakeService("foo", svctest.SetTypeExternalName),
    		expect: true,
    	}, {
    		name: "ClusterIPs_unspecified",
    		input: svcTestCase{
    			svc:              svctest.MakeService("foo", svctest.SetTypeClusterIP),
    			expectClusterIPs: true,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 440.2K bytes
    - Viewed (0)
  2. pilot/pkg/serviceregistry/mock/discovery_mock.go

    	HelloService = MakeService(ServiceArgs{
    		Hostname:        "hello.default.svc.cluster.local",
    		Address:         "10.1.0.0",
    		ServiceAccounts: []string{},
    		ClusterID:       "cluster-1",
    	})
    
    	// ReplicatedFooServiceName is a service replicated in all clusters.
    	ReplicatedFooServiceName = host.Name("foo.default.svc.cluster.local")
    	ReplicatedFooServiceV1   = MakeService(ServiceArgs{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 23 02:37:56 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/mock/discovery_test.go

    func TestMakeIP(t *testing.T) {
    	HelloService := MakeService(ServiceArgs{
    		Hostname:        "hello.default.svc.cluster.local",
    		Address:         "10.1.0.0",
    		ServiceAccounts: []string{},
    		ClusterID:       "cluster-1",
    	})
    	HelloInstanceV0 := MakeIP(HelloService, 0)
    
    	if HelloInstanceV0 != "10.1.1.0" {
    		t.Fatalf("MakeIP() can not handle ip4 address.")
    	}
    
    	HelloService1 := MakeService(ServiceArgs{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 09 17:33:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    				makeService("tcp1.com", "multiAddrInternal", "2.2.2.0/16",
    					map[string]int{"tcp-444": 444}, false, model.Passthrough),
    				makeService("tcp2.com", "multiAddrInternal", "1.1.1.0/16",
    					map[string]int{"tcp-444": 444}, false, model.Passthrough),
    				makeService("tcp2.com", "multiAddrInternal", "2.2.2.0/16",
    					map[string]int{"tcp-444": 444}, false, model.Passthrough),
    			},
    		},
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/serviceregistry_test.go

    		s := xds.NewFakeDiscoveryServer(t, xds.FakeOptions{})
    		makeService(t, s.KubeClient().Kube(), service)
    		makeIstioObject(t, s.Store(), workloadEntry)
    		expectEndpoints(t, s, "outbound|80||service.namespace.svc.cluster.local", []string{"2.3.4.5:80"}, nil)
    
    		newSvc := service.DeepCopy()
    		newSvc.Spec.Ports[0].Port = 8080
    		makeService(t, s.KubeClient().Kube(), newSvc)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  6. pkg/api/service/testing/make.go

    type Tweak func(*api.Service)
    
    // MakeService helps construct Service objects (which pass API validation) more
    // legibly and tersely than a Go struct definition.  By default this produces
    // a ClusterIP service with a single port and a trivial selector.  The caller
    // can pass any number of tweak functions to further modify the result.
    func MakeService(name string, tweaks ...Tweak) *api.Service {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:15 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/mock/discovery.go

    			Labels:          map[string]string{"version": fmt.Sprintf("v%d", version)},
    			Locality:        locality,
    		},
    		Service:     service,
    		ServicePort: port,
    	}
    }
    
    // MakeService creates a memory service
    func MakeService(args ServiceArgs) *model.Service {
    	return &model.Service{
    		CreationTime: time.Now(),
    		Hostname:     args.Hostname,
    		ClusterVIPs: model.AddressMap{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 18:40:05 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. pkg/controller/endpoint/endpoints_controller_test.go

    			pod:             makePod(v1.PodRunning, true, false),
    			service:         makeService(false),
    			expectedReady:   1,
    			expectedUnready: 0,
    		},
    		{
    			name:            "pod running phase being deleted",
    			pod:             makePod(v1.PodRunning, true, true),
    			service:         makeService(false),
    			expectedReady:   0,
    			expectedUnready: 0,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceentry/store_test.go

    	store := serviceStore{
    		servicesBySE: map[types.NamespacedName][]*model.Service{},
    	}
    
    	expectedServices := []*model.Service{
    		makeService("*.istio.io", "httpDNSRR", constants.UnspecifiedIP, map[string]int{"http-port": 80, "http-alt-port": 8080}, true, model.DNSRoundRobinLB),
    		makeService("*.istio.io", "httpDNSRR", constants.UnspecifiedIP, map[string]int{"http-port": 80, "http-alt-port": 8080}, true, model.DNSLB),
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. pilot/pkg/xds/eds_sh_test.go

    			Gateways: gws,
    		})
    	}
    
    	svcLabels := map[string]string{
    		"version": "v1.1",
    	}
    
    	// Explicit test service, in the v2 memory registry. Similar with mock.MakeService,
    	// but easier to read.
    	memRegistry.AddService(&model.Service{
    		Hostname:       "service5.default.svc.cluster.local",
    		DefaultAddress: "10.10.0.1",
    		Ports: []*model.Port{
    			{
    				Name:     "http-main",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 12 18:20:36 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top