Clear node status before the validation check.

This commit is contained in:
Brendan Burns
2014-12-22 11:04:57 -08:00
parent 95d4da98bb
commit 9884142061
2 changed files with 16 additions and 0 deletions

View File

@@ -578,6 +578,8 @@ func ValidateMinionUpdate(oldMinion *api.Node, minion *api.Node) errs.Validation
// Allow users to update labels and capacity
oldMinion.Labels = minion.Labels
oldMinion.Spec.Capacity = minion.Spec.Capacity
// Clear status
oldMinion.Status = minion.Status
if !reflect.DeepEqual(oldMinion, minion) {
glog.V(4).Infof("Update failed validation %#v vs %#v", oldMinion, minion)