From d14e7c132d012d82080b26f7e55a7e5cef72957c Mon Sep 17 00:00:00 2001 From: Abhijit Mukherjee Date: Wed, 21 Feb 2024 09:29:10 +0530 Subject: [PATCH] Rearrange imports Signed-off-by: Abhijit Mukherjee --- pkg/handler/handler.go | 2 +- pkg/validatingwebhook/blueprint_handler.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/handler/handler.go b/pkg/handler/handler.go index 764448b3ff0..4366ea02c51 100644 --- a/pkg/handler/handler.go +++ b/pkg/handler/handler.go @@ -25,13 +25,13 @@ import ( "sigs.k8s.io/controller-runtime/pkg/manager" "sigs.k8s.io/controller-runtime/pkg/manager/signals" "sigs.k8s.io/controller-runtime/pkg/webhook" + "sigs.k8s.io/controller-runtime/pkg/webhook/admission" crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1" "github.com/kanisterio/kanister/pkg/validatingwebhook" "github.com/kanisterio/kanister/pkg/version" "github.com/pkg/errors" "github.com/prometheus/client_golang/prometheus/promhttp" - "sigs.k8s.io/controller-runtime/pkg/webhook/admission" ) const ( diff --git a/pkg/validatingwebhook/blueprint_handler.go b/pkg/validatingwebhook/blueprint_handler.go index bbc92cd5e53..c93c6393551 100644 --- a/pkg/validatingwebhook/blueprint_handler.go +++ b/pkg/validatingwebhook/blueprint_handler.go @@ -4,13 +4,14 @@ import ( "context" "fmt" - kanister "github.com/kanisterio/kanister/pkg" - crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1" - "github.com/kanisterio/kanister/pkg/blueprint/validate" "k8s.io/apimachinery/pkg/runtime" logf "sigs.k8s.io/controller-runtime/pkg/log" "sigs.k8s.io/controller-runtime/pkg/webhook" "sigs.k8s.io/controller-runtime/pkg/webhook/admission" + + kanister "github.com/kanisterio/kanister/pkg" + crv1alpha1 "github.com/kanisterio/kanister/pkg/apis/cr/v1alpha1" + "github.com/kanisterio/kanister/pkg/blueprint/validate" ) //+kubebuilder:webhook:path=validate/v1alpha1/blueprint,mutating=false,failurePolicy=fail,sideEffects=None,groups=cr.kanister.io,resources=blueprints,verbs=create,versions=v1alpha1,name=blueprint.cr.kanister.io