Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for hasConflicts (0.12 sec)

  1. pilot/pkg/model/virtualservice.go

    	}
    
    	// each HTTPMatchRequest of delegate must find a superset in root.
    	// otherwise it conflicts
    	for _, subMatch := range delegate {
    		foundMatch := false
    		for _, rootMatch := range root {
    			if hasConflict(rootMatch, subMatch) {
    				log.Warnf("HTTPMatchRequests conflict: root %v, delegate %v", rootMatch, subMatch)
    				continue
    			}
    			// merge HTTPMatchRequest
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 11:17:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. pilot/pkg/model/virtualservice_test.go

    				Gateways: []string{"ingress-gateway", "mesh"},
    			},
    			expected: true,
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := hasConflict(tc.root, tc.leaf)
    			if got != tc.expected {
    				t.Errorf("got %v, expected %v", got, tc.expected)
    			}
    		})
    	}
    }
    
    // Note: this is to prevent missing merge new added HTTPRoute fields
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
Back to top