Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for validateOutlierDetection (0.18 sec)

  1. pkg/config/validation/validation.go

    	}
    
    	if policy.Tunnel != nil && policy.ProxyProtocol != nil {
    		return WrapError(fmt.Errorf("tunnel and proxyProtocol must not be set together"))
    	}
    
    	return AppendValidation(validateOutlierDetection(policy.OutlierDetection),
    		validateConnectionPool(policy.ConnectionPool),
    		validateLoadBalancer(policy.LoadBalancer, policy.OutlierDetection),
    		agent.ValidateTLS(policy.Tls),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  2. pkg/config/validation/validation_test.go

    		},
    	}
    
    	for _, c := range cases {
    		got := validateOutlierDetection(c.in)
    		if (got.Err == nil) != c.valid {
    			t.Errorf("ValidateOutlierDetection failed on %v: got valid=%v but wanted valid=%v: %v",
    				c.name, got.Err == nil, c.valid, got.Err)
    		}
    		if (got.Warning == nil) == c.warn {
    			t.Errorf("ValidateOutlierDetection failed on %v: got warn=%v but wanted warn=%v: %v",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
Back to top