mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Renamed doTaintingPass to doNoExecuteTaintingPass.
This commit is contained in:
parent
678947d431
commit
e89e01d063
@ -434,7 +434,7 @@ func (nc *NodeController) doEvictionPass() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (nc *NodeController) doTaintingPass() {
|
func (nc *NodeController) doNoExecuteTaintingPass() {
|
||||||
nc.evictorLock.Lock()
|
nc.evictorLock.Lock()
|
||||||
defer nc.evictorLock.Unlock()
|
defer nc.evictorLock.Unlock()
|
||||||
for k := range nc.zoneNoExecuteTainer {
|
for k := range nc.zoneNoExecuteTainer {
|
||||||
@ -498,7 +498,7 @@ func (nc *NodeController) Run(stopCh <-chan struct{}) {
|
|||||||
if nc.useTaintBasedEvictions {
|
if nc.useTaintBasedEvictions {
|
||||||
// Handling taint based evictions. Because we don't want a dedicated logic in TaintManager for NC-originated
|
// Handling taint based evictions. Because we don't want a dedicated logic in TaintManager for NC-originated
|
||||||
// taints and we normally don't rate limit evictions caused by taints, we need to rate limit adding taints.
|
// taints and we normally don't rate limit evictions caused by taints, we need to rate limit adding taints.
|
||||||
go wait.Until(nc.doTaintingPass, nodeEvictionPeriod, wait.NeverStop)
|
go wait.Until(nc.doNoExecuteTaintingPass, nodeEvictionPeriod, wait.NeverStop)
|
||||||
} else {
|
} else {
|
||||||
// Managing eviction of nodes:
|
// Managing eviction of nodes:
|
||||||
// When we delete pods off a node, if the node was not empty at the time we then
|
// When we delete pods off a node, if the node was not empty at the time we then
|
||||||
|
@ -2005,7 +2005,7 @@ func TestSwapUnreachableNotReadyTaints(t *testing.T) {
|
|||||||
if err := nodeController.monitorNodeStatus(); err != nil {
|
if err := nodeController.monitorNodeStatus(); err != nil {
|
||||||
t.Errorf("unexpected error: %v", err)
|
t.Errorf("unexpected error: %v", err)
|
||||||
}
|
}
|
||||||
nodeController.doTaintingPass()
|
nodeController.doNoExecuteTaintingPass()
|
||||||
|
|
||||||
node0, err := fakeNodeHandler.Get("node0", metav1.GetOptions{})
|
node0, err := fakeNodeHandler.Get("node0", metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -2043,7 +2043,7 @@ func TestSwapUnreachableNotReadyTaints(t *testing.T) {
|
|||||||
if err := nodeController.monitorNodeStatus(); err != nil {
|
if err := nodeController.monitorNodeStatus(); err != nil {
|
||||||
t.Errorf("unexpected error: %v", err)
|
t.Errorf("unexpected error: %v", err)
|
||||||
}
|
}
|
||||||
nodeController.doTaintingPass()
|
nodeController.doNoExecuteTaintingPass()
|
||||||
|
|
||||||
node0, err = fakeNodeHandler.Get("node0", metav1.GetOptions{})
|
node0, err = fakeNodeHandler.Get("node0", metav1.GetOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user