Skip to content

Commit

Permalink
Merge pull request kubernetes-retired#491 from jiaxuanzhou/nodeUpdate
Browse files Browse the repository at this point in the history
Update nodeInfo once node was cordoned
  • Loading branch information
k8s-ci-robot authored Dec 13, 2018
2 parents dfc2acc + 0234202 commit d15f7d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/scheduler/cache/event_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ func (sc *SchedulerCache) addNode(node *v1.Node) error {
func isNodeInfoUpdated(oldNode, newNode *v1.Node) bool {
return !reflect.DeepEqual(oldNode.Status.Allocatable, newNode.Status.Allocatable) ||
!reflect.DeepEqual(oldNode.Spec.Taints, newNode.Spec.Taints) ||
!reflect.DeepEqual(oldNode.Labels, newNode.Labels)
!reflect.DeepEqual(oldNode.Labels, newNode.Labels) ||
!reflect.DeepEqual(oldNode.Spec.Unschedulable, newNode.Spec.Unschedulable)
}

// Assumes that lock is already acquired.
Expand Down

0 comments on commit d15f7d8

Please sign in to comment.