Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ServiceEntry_NONE (0.14 sec)

  1. pkg/config/validation/validation_test.go

    				Ports: []*networking.ServicePort{
    					{Number: 80, Protocol: "http", Name: "http-valid1"},
    					{Number: 8080, Protocol: "http", Name: "http-valid2"},
    				},
    				Resolution: networking.ServiceEntry_NONE,
    			},
    			valid: true,
    		},
    
    		{
    			name: "discovery type none, endpoints provided", in: &networking.ServiceEntry{
    				Hosts: []string{"google.com"},
    				Ports: []*networking.ServicePort{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    			cidrFound = cidrFound || strings.Contains(address, "/")
    			errs = AppendValidation(errs, agent.ValidateIPSubnet(address))
    		}
    
    		if cidrFound {
    			if serviceEntry.Resolution != networking.ServiceEntry_NONE && serviceEntry.Resolution != networking.ServiceEntry_STATIC {
    				errs = AppendValidation(errs, fmt.Errorf("CIDR addresses are allowed only for NONE/STATIC resolution types"))
    			}
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top