Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for makeService (0.39 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pilot/pkg/serviceregistry/aggregate/controller_test.go

    func buildMockControllerForMultiCluster() (*Controller, *memory.ServiceDiscovery, *memory.ServiceDiscovery) {
    	discovery1 := memory.NewServiceDiscovery(mock.HelloService)
    
    	discovery2 := memory.NewServiceDiscovery(mock.MakeService(mock.ServiceArgs{
    		Hostname:        mock.HelloService.Hostname,
    		Address:         "10.1.2.0",
    		ServiceAccounts: []string{},
    		ClusterID:       "cluster-2",
    	}), mock.WorldService)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	t.Parallel()
    	ns := "ns-test"
    
    	hostname := kube.ServiceHostname(testService, ns, defaultFakeDomainSuffix)
    
    	var sds model.ServiceDiscovery = ctl
    	// "test", ports: http-example on 80
    	makeService(testService, ns, ctl, t)
    
    	eventually(t, func() bool {
    		out := sds.Services()
    
    		// Original test was checking for 'protocolTCP' - which is incorrect (the
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    	expectedServices := []*model.Service{
    		makeService("*.istio.io", "httpDNSRR", constants.UnspecifiedIP, map[string]int{"http-port": 80, "http-alt-port": 8080}, true, model.DNSRoundRobinLB),
    		makeService("*.google.com", "httpDNS", 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
    - 92.9K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/devicemanager/manager_test.go

    						resps.ContainerResponses = append(resps.ContainerResponses, resp)
    						return resps, nil
    					},
    				},
    				opts: nil,
    			}
    		}
    		testManager.allDevices[res.resourceName] = makeDevice(res.devs, res.topology)
    
    	}
    	return testManager, nil
    }
    
    type TestResource struct {
    	resourceName     string
    	resourceQuantity resource.Quantity
    	devs             checkpoint.DevicesPerNUMA
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
Back to top