add topologyValue map to reduce search space

This commit is contained in:
Mohamed Mehany
2018-07-30 04:59:26 +02:00
committed by Ahmad Diaa
parent 6b41352679
commit 3fb6912d08
3 changed files with 108 additions and 35 deletions

View File

@@ -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},