Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MakeIP (0.08 sec)

  1. pilot/pkg/serviceregistry/mock/discovery_test.go

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

    		MeshExternal:   isMeshExternal,
    		Ports: []*model.Port{{
    			Name:     "https",
    			Port:     443,
    			Protocol: protocol.HTTPS,
    		}},
    	}
    }
    
    // MakeIP creates a fake IP address for a service and instance version
    func MakeIP(service *model.Service, version int) string {
    	// external services have no instances
    	if service.External() {
    		return ""
    	}
    	ipa, ise := netip.ParseAddr(service.DefaultAddress)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 18:40:05 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/mock/discovery_mock.go

    	ExtHTTPSService = MakeExternalHTTPSService("httpsbin.default.svc.cluster.local",
    		true, "")
    
    	// HelloInstanceV0 is a mock IP address for v0 of HelloService
    	HelloInstanceV0 = MakeIP(HelloService, 0)
    
    	// HelloProxyV0 is a mock proxy v0 of HelloService
    	HelloProxyV0 = model.Proxy{
    		Type:         model.SidecarProxy,
    		IPAddresses:  []string{HelloInstanceV0},
    		ID:           "v0.default",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 23 02:37:56 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/aggregate/controller_test.go

    			t.Fatal("Returned Instance is incorrect")
    		}
    	}
    
    	// Get Instances from mockAdapter2
    	instances = aggregateCtl.GetProxyServiceTargets(&model.Proxy{IPAddresses: []string{mock.MakeIP(mock.WorldService, 1)}})
    	if len(instances) != 6 {
    		t.Fatalf("Returned GetProxyServiceTargets' amount %d is not correct", len(instances))
    	}
    	for _, inst := range instances {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 06:28:11 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top