fix update node condition

This commit is contained in:
dbdd4us
2018-06-13 19:58:41 +08:00
parent b05a61e299
commit 5835d9bde4
2 changed files with 16 additions and 14 deletions

View File

@@ -258,7 +258,7 @@ func (m *FakeNodeHandler) UpdateStatus(node *v1.Node) (*v1.Node, error) {
// PatchStatus patches a status of a Node in the fake store.
func (m *FakeNodeHandler) PatchStatus(nodeName string, data []byte) (*v1.Node, error) {
m.RequestCount++
return &v1.Node{}, nil
return m.Patch(nodeName, types.StrategicMergePatchType, data, "status")
}
// Watch watches Nodes in a fake store.