Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GenerateService (0.24 sec)

  1. pilot/pkg/serviceregistry/kube/controller/network_test.go

    	fx.WaitOrFail(t, "xds")
    
    	pod2 := generatePod("127.0.0.2", "pod2", testNS, "sa2", "node1", map[string]string{"app": "a"}, nil)
    	pc.CreateOrUpdateStatus(pod2)
    	fx.WaitOrFail(t, "xds")
    
    	sc.CreateOrUpdate(generateService("svc1", testNS, map[string]string{}, // labels
    		map[string]string{}, // annotations
    		[]int32{80},
    		map[string]string{"app": "a"}, // selector
    		"10.0.0.1",
    	))
    	fx.WaitOrFail(t, "xds")
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/deployment/builder.go

    // per cluster. This avoids concurrent writes later.
    func (b *builder) deployServices() (err error) {
    	services := make(map[string]string)
    	for _, cfg := range b.configs {
    		svc, err := kube.GenerateService(cfg)
    		if err != nil {
    			return err
    		}
    		if existing, ok := services[cfg.ClusterLocalFQDN()]; ok {
    			// we've already run the generation for another echo instance's config, make sure things are the same
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. pkg/test/framework/components/echo/kube/deployment.go

    		return "", err
    	}
    
    	deploy := getTemplate(deploymentTemplateFile)
    	if cfg.DeployAsVM {
    		deploy = getTemplate(vmDeploymentTemplateFile)
    	}
    
    	return tmpl.Execute(deploy, params)
    }
    
    func GenerateService(cfg echo.Config) (string, error) {
    	params := serviceParams(cfg)
    	return tmpl.Execute(getTemplate(serviceTemplateFile), params)
    }
    
    var VMImages = map[echo.VMDistro]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    }
    
    func (s *ambientTestServer) addService(t *testing.T, name string, labels, annotations map[string]string,
    	ports []int32, selector map[string]string, ip string,
    ) {
    	t.Helper()
    	service := generateService(name, testNS, labels, annotations, ports, selector, ip)
    	s.sc.CreateOrUpdate(service)
    }
    
    func (s *ambientTestServer) lookup(key string) []model.AddressInfo {
    	if key == "" {
    		return s.All()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	ports []int32, selector map[string]string, t *testing.T,
    ) {
    	service := generateService(name, namespace, labels, annotations, ports, selector, "10.0.0.1")
    	clienttest.Wrap(t, controller.services).CreateOrUpdate(service)
    }
    
    func generateService(name, namespace string, labels, annotations map[string]string,
    	ports []int32, selector map[string]string, ip string,
    ) *corev1.Service {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
Back to top