daemon: add custom node indexer

This commit is contained in:
Michal Fojtik
2018-06-12 10:29:55 +02:00
parent 52603a78ab
commit 6517e250cd
2 changed files with 33 additions and 16 deletions

View File

@@ -1953,6 +1953,7 @@ func TestNodeShouldRunDaemonPod(t *testing.T) {
for _, p := range c.podsOnNode {
manager.podStore.Add(p)
p.Spec.NodeName = "test-node"
manager.podNodeIndex.Add(p)
}
c.ds.Spec.UpdateStrategy = *strategy
wantToRun, shouldSchedule, shouldContinueRunning, err := manager.nodeShouldRunDaemonPod(node, c.ds)