mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #71668 from mtaufen/node-lifecycle-metrics
export metrics from node lifecycle controller workqueues
This commit is contained in:
		@@ -288,7 +288,7 @@ func NewNodeLifecycleController(
 | 
				
			|||||||
		runTaintManager:             runTaintManager,
 | 
							runTaintManager:             runTaintManager,
 | 
				
			||||||
		useTaintBasedEvictions:      useTaintBasedEvictions && runTaintManager,
 | 
							useTaintBasedEvictions:      useTaintBasedEvictions && runTaintManager,
 | 
				
			||||||
		taintNodeByCondition:        taintNodeByCondition,
 | 
							taintNodeByCondition:        taintNodeByCondition,
 | 
				
			||||||
		nodeUpdateQueue:             workqueue.New(),
 | 
							nodeUpdateQueue:             workqueue.NewNamed("node_lifecycle_controller"),
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if useTaintBasedEvictions {
 | 
						if useTaintBasedEvictions {
 | 
				
			||||||
		klog.Infof("Controller is using taint based evictions.")
 | 
							klog.Infof("Controller is using taint based evictions.")
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -185,8 +185,8 @@ func NewNoExecuteTaintManager(c clientset.Interface, getPod GetPodFunc, getNode
 | 
				
			|||||||
		getNode:      getNode,
 | 
							getNode:      getNode,
 | 
				
			||||||
		taintedNodes: make(map[string][]v1.Taint),
 | 
							taintedNodes: make(map[string][]v1.Taint),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		nodeUpdateQueue: workqueue.New(),
 | 
							nodeUpdateQueue: workqueue.NewNamed("noexec_taint_node"),
 | 
				
			||||||
		podUpdateQueue:  workqueue.New(),
 | 
							podUpdateQueue:  workqueue.NewNamed("noexec_taint_pod"),
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	tm.taintEvictionQueue = CreateWorkerQueue(deletePodHandler(c, tm.emitPodDeletionEvent))
 | 
						tm.taintEvictionQueue = CreateWorkerQueue(deletePodHandler(c, tm.emitPodDeletionEvent))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user