From f95e200da0114c5d7b025df4b13dfe699e266191 Mon Sep 17 00:00:00 2001 From: Andy Goldstein Date: Wed, 10 Jan 2024 10:23:41 -0500 Subject: [PATCH] Make operator-lib imports last Signed-off-by: Andy Goldstein --- handler/instrumented_enqueue_object_test.go | 4 ++-- handler/pause.go | 4 ++-- predicate/pause.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/handler/instrumented_enqueue_object_test.go b/handler/instrumented_enqueue_object_test.go index 13a6653..60911f4 100644 --- a/handler/instrumented_enqueue_object_test.go +++ b/handler/instrumented_enqueue_object_test.go @@ -17,8 +17,6 @@ package handler import ( "context" - "github.com/operator-framework/operator-lib/handler/internal/metrics" - . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/prometheus/client_golang/prometheus" @@ -30,6 +28,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/controller/controllertest" "sigs.k8s.io/controller-runtime/pkg/event" "sigs.k8s.io/controller-runtime/pkg/reconcile" + + "github.com/operator-framework/operator-lib/handler/internal/metrics" ) var _ = Describe("InstrumentedEnqueueRequestForObject", func() { diff --git a/handler/pause.go b/handler/pause.go index 648aaa0..9ce2b4a 100644 --- a/handler/pause.go +++ b/handler/pause.go @@ -15,9 +15,9 @@ package handler import ( - "github.com/operator-framework/operator-lib/internal/annotation" - "sigs.k8s.io/controller-runtime/pkg/handler" + + "github.com/operator-framework/operator-lib/internal/annotation" ) // NewPause returns an event handler that filters out objects with a truthy "paused" annotation. diff --git a/predicate/pause.go b/predicate/pause.go index 9a2ea3e..b008f66 100644 --- a/predicate/pause.go +++ b/predicate/pause.go @@ -15,9 +15,9 @@ package predicate import ( - "github.com/operator-framework/operator-lib/internal/annotation" - "sigs.k8s.io/controller-runtime/pkg/predicate" + + "github.com/operator-framework/operator-lib/internal/annotation" ) // NewPause returns a predicate that filters out objects with a truthy "paused" annotation.