NodeConditionPredicates should return NodeOutOfDisk error.

This commit is contained in:
Klaus Ma
2017-08-14 15:17:56 +08:00
parent b32639f9e7
commit abee0ce8a3
2 changed files with 20 additions and 1 deletions

View File

@@ -1351,7 +1351,7 @@ func NodeConditionPredicates(nodeInfo *schedulercache.NodeInfo) (bool, []algorit
// TODO: There are other node status that the DaemonSet should ideally respect too,
// e.g. MemoryPressure, and DiskPressure
if c.Type == v1.NodeOutOfDisk && c.Status == v1.ConditionTrue {
reasons = append(reasons, predicates.ErrNodeSelectorNotMatch)
reasons = append(reasons, predicates.ErrNodeOutOfDisk)
break
}
}