Use Patch instead of UpdateStatus.

This commit is contained in:
Lantao Liu
2016-05-30 19:22:32 -07:00
parent 3785e2b218
commit 8759e4d610
7 changed files with 53 additions and 292 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ func (c *conditionManager) sync() {
for i := range c.conditions {
conditions = append(conditions, problemutil.ConvertToAPICondition(c.conditions[i]))
}
if err := c.client.SetConditions(conditions, updateTimeout); err != nil {
if err := c.client.SetConditions(conditions); err != nil {
// The conditions will be updated again in future sync
glog.Errorf("failed to update node conditions: %v", err)
return