Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isDestinationRuleWithSelector (3.01 sec)

  1. pkg/config/validation/validation_test.go

    			isServiceEntry:                false,
    			isDestinationRuleWithSelector: true,
    			wantErr:                       true,
    		},
    		{
    			name:                          "destination rule with workloadselector can have only exportTo (.)",
    			namespace:                     "ns5",
    			exportTo:                      []string{"."},
    			isServiceEntry:                false,
    			isDestinationRuleWithSelector: true,
    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

    		v = AppendValidation(v, validateWorkloadSelector(rule.GetWorkloadSelector()))
    
    		return v.Unwrap()
    	})
    
    func validateExportTo(namespace string, exportTo []string, isServiceEntry bool, isDestinationRuleWithSelector bool) (errs error) {
    	if len(exportTo) > 0 {
    		// Make sure there are no duplicates
    		exportToSet := sets.New[string]()
    		for _, e := range exportTo {
    			key := e
    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