mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Make node removal conditional in processGraphChanges
This commit is contained in:
parent
ac8d419b4c
commit
b8d7ecf73b
@ -679,6 +679,10 @@ func (gb *GraphBuilder) processGraphChanges() bool {
|
|||||||
klog.V(5).Infof("%v doesn't exist in the graph, this shouldn't happen", accessor.GetUID())
|
klog.V(5).Infof("%v doesn't exist in the graph, this shouldn't happen", accessor.GetUID())
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removeExistingNode := true
|
||||||
|
|
||||||
|
if removeExistingNode {
|
||||||
// removeNode updates the graph
|
// removeNode updates the graph
|
||||||
gb.removeNode(existingNode)
|
gb.removeNode(existingNode)
|
||||||
existingNode.dependentsLock.RLock()
|
existingNode.dependentsLock.RLock()
|
||||||
@ -699,5 +703,6 @@ func (gb *GraphBuilder) processGraphChanges() bool {
|
|||||||
gb.attemptToDelete.Add(ownerNode)
|
gb.attemptToDelete.Add(ownerNode)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user