diff --git a/cmd/rollouts-controller/main.go b/cmd/rollouts-controller/main.go index 401b579323..f94fc10ba9 100644 --- a/cmd/rollouts-controller/main.go +++ b/cmd/rollouts-controller/main.go @@ -20,6 +20,8 @@ import ( _ "k8s.io/client-go/plugin/pkg/client/auth/oidc" "k8s.io/client-go/tools/clientcmd" + "github.com/argoproj/pkg/kubeclientmetrics" + "github.com/argoproj/argo-rollouts/controller" "github.com/argoproj/argo-rollouts/controller/metrics" jobprovider "github.com/argoproj/argo-rollouts/metricproviders/job" @@ -32,7 +34,6 @@ import ( logutil "github.com/argoproj/argo-rollouts/utils/log" "github.com/argoproj/argo-rollouts/utils/tolerantinformer" "github.com/argoproj/argo-rollouts/utils/version" - "github.com/argoproj/pkg/kubeclientmetrics" ) const ( diff --git a/controller/controller.go b/controller/controller.go index f12b268fbf..a0efcbe55f 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -17,7 +17,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/util/runtime" - utilruntime "k8s.io/apimachinery/pkg/util/runtime" "k8s.io/apimachinery/pkg/util/uuid" "k8s.io/apimachinery/pkg/util/wait" "k8s.io/client-go/discovery" @@ -175,7 +174,7 @@ func NewManager( albIngressClasses []string, ) *Manager { - utilruntime.Must(rolloutscheme.AddToScheme(scheme.Scheme)) + runtime.Must(rolloutscheme.AddToScheme(scheme.Scheme)) log.Info("Creating event broadcaster") metricsAddr := fmt.Sprintf(listenAddr, metricsPort)