From eb9f2950a7538328cf7a6b1dd320e9bcb54cad04 Mon Sep 17 00:00:00 2001 From: chaosi-zju Date: Tue, 31 Dec 2024 11:22:18 +0800 Subject: [PATCH] remove workaround code for resolving workqueue metrics loss by modifying import order Signed-off-by: chaosi-zju --- cmd/agent/main.go | 1 - cmd/controller-manager/controller-manager.go | 1 - cmd/descheduler/main.go | 1 - cmd/scheduler-estimator/main.go | 1 - cmd/scheduler/main.go | 1 - operator/cmd/operator/operator.go | 1 - 6 files changed, 6 deletions(-) diff --git a/cmd/agent/main.go b/cmd/agent/main.go index 7d4743bd2ae7..7ac0891b5c63 100644 --- a/cmd/agent/main.go +++ b/cmd/agent/main.go @@ -23,7 +23,6 @@ import ( _ "k8s.io/component-base/logs/json/register" // for JSON log format registration "k8s.io/klog/v2" controllerruntime "sigs.k8s.io/controller-runtime" - _ "sigs.k8s.io/controller-runtime/pkg/metrics" "github.com/karmada-io/karmada/cmd/agent/app" ) diff --git a/cmd/controller-manager/controller-manager.go b/cmd/controller-manager/controller-manager.go index ab50af73d031..7d0d5b9d1166 100644 --- a/cmd/controller-manager/controller-manager.go +++ b/cmd/controller-manager/controller-manager.go @@ -23,7 +23,6 @@ import ( _ "k8s.io/component-base/logs/json/register" // for JSON log format registration "k8s.io/klog/v2" controllerruntime "sigs.k8s.io/controller-runtime" - _ "sigs.k8s.io/controller-runtime/pkg/metrics" "github.com/karmada-io/karmada/cmd/controller-manager/app" ) diff --git a/cmd/descheduler/main.go b/cmd/descheduler/main.go index 9914e40a18f0..8efd3df3a4a2 100644 --- a/cmd/descheduler/main.go +++ b/cmd/descheduler/main.go @@ -22,7 +22,6 @@ import ( "k8s.io/component-base/cli" _ "k8s.io/component-base/logs/json/register" // for JSON log format registration controllerruntime "sigs.k8s.io/controller-runtime" - _ "sigs.k8s.io/controller-runtime/pkg/metrics" "github.com/karmada-io/karmada/cmd/descheduler/app" ) diff --git a/cmd/scheduler-estimator/main.go b/cmd/scheduler-estimator/main.go index 177ff5ebd625..eb7061c0032d 100644 --- a/cmd/scheduler-estimator/main.go +++ b/cmd/scheduler-estimator/main.go @@ -22,7 +22,6 @@ import ( "k8s.io/component-base/cli" _ "k8s.io/component-base/logs/json/register" // for JSON log format registration controllerruntime "sigs.k8s.io/controller-runtime" - _ "sigs.k8s.io/controller-runtime/pkg/metrics" "github.com/karmada-io/karmada/cmd/scheduler-estimator/app" ) diff --git a/cmd/scheduler/main.go b/cmd/scheduler/main.go index 5c03d2dca624..8aabe98f137b 100644 --- a/cmd/scheduler/main.go +++ b/cmd/scheduler/main.go @@ -22,7 +22,6 @@ import ( "k8s.io/component-base/cli" _ "k8s.io/component-base/logs/json/register" // for JSON log format registration controllerruntime "sigs.k8s.io/controller-runtime" - _ "sigs.k8s.io/controller-runtime/pkg/metrics" "github.com/karmada-io/karmada/cmd/scheduler/app" ) diff --git a/operator/cmd/operator/operator.go b/operator/cmd/operator/operator.go index 60abfde88e2e..b91a1e972e02 100644 --- a/operator/cmd/operator/operator.go +++ b/operator/cmd/operator/operator.go @@ -23,7 +23,6 @@ import ( _ "k8s.io/component-base/logs/json/register" // for JSON log format registration "k8s.io/klog/v2" controllerruntime "sigs.k8s.io/controller-runtime" - _ "sigs.k8s.io/controller-runtime/pkg/metrics" "github.com/karmada-io/karmada/operator/cmd/operator/app" )