Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MakeIP (0.54 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)
Back to top