mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
Merge pull request #97221 from 249043822/br-scheduler-metrics
cleanup constants for scheduler metrics
This commit is contained in:
@@ -540,8 +540,8 @@ func (sched *Scheduler) scheduleOne(ctx context.Context) {
|
||||
go func() {
|
||||
bindingCycleCtx, cancel := context.WithCancel(ctx)
|
||||
defer cancel()
|
||||
metrics.SchedulerGoroutines.WithLabelValues("binding").Inc()
|
||||
defer metrics.SchedulerGoroutines.WithLabelValues("binding").Dec()
|
||||
metrics.SchedulerGoroutines.WithLabelValues(metrics.Binding).Inc()
|
||||
defer metrics.SchedulerGoroutines.WithLabelValues(metrics.Binding).Dec()
|
||||
|
||||
waitOnPermitStatus := fwk.WaitOnPermit(bindingCycleCtx, assumedPod)
|
||||
if !waitOnPermitStatus.IsSuccess() {
|
||||
|
Reference in New Issue
Block a user