add topologyValue map to reduce search space
This commit is contained in:

committed by
Ahmad Diaa

parent
6b41352679
commit
3fb6912d08
@@ -475,6 +475,10 @@ func TestPredicateMetadata_ShallowCopy(t *testing.T) {
|
||||
},
|
||||
},
|
||||
},
|
||||
topologyValueToAntiAffinityPods: map[string][]string{
|
||||
"machine1": {"p1", "p2"},
|
||||
"machine2": {"p3"},
|
||||
},
|
||||
nodeNameToMatchingAffinityPods: map[string][]*v1.Pod{
|
||||
"nodeA": {
|
||||
&v1.Pod{ObjectMeta: metav1.ObjectMeta{Name: "p1", Labels: selector1},
|
||||
|
Reference in New Issue
Block a user