Skip to content

Commit

Permalink
lint: fix gci lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Tien committed Dec 1, 2024
1 parent dd09fc9 commit 28d3012
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions pkg/yurtmanager/webhook/endpoints/v1/endpoints_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ import (
"context"
"fmt"

nodeutil "github.com/openyurtio/openyurt/pkg/yurtmanager/controller/util/node"
podutil "github.com/openyurtio/openyurt/pkg/yurtmanager/controller/util/pod"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
"sigs.k8s.io/controller-runtime/pkg/client"

nodeutil "github.com/openyurtio/openyurt/pkg/yurtmanager/controller/util/node"
podutil "github.com/openyurtio/openyurt/pkg/yurtmanager/controller/util/pod"
)

// Default satisfies the defaulting webhook interface.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ import (
"context"
"testing"

"github.com/openyurtio/openyurt/pkg/apis"
"github.com/openyurtio/openyurt/pkg/projectinfo"
nodeutils "github.com/openyurtio/openyurt/pkg/yurtmanager/controller/util/node"
v1 "github.com/openyurtio/openyurt/pkg/yurtmanager/webhook/endpoints/v1"
"github.com/stretchr/testify/require"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
"k8s.io/utils/ptr"
fakeclient "sigs.k8s.io/controller-runtime/pkg/client/fake"

"github.com/openyurtio/openyurt/pkg/apis"
"github.com/openyurtio/openyurt/pkg/projectinfo"
nodeutils "github.com/openyurtio/openyurt/pkg/yurtmanager/controller/util/node"
v1 "github.com/openyurtio/openyurt/pkg/yurtmanager/webhook/endpoints/v1"
)

func TestDefault_AutonomyAnnotations(t *testing.T) {
Expand Down
7 changes: 4 additions & 3 deletions pkg/yurtmanager/webhook/endpoints/v1/endpoints_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ limitations under the License.
package v1

import (
yurtClient "github.com/openyurtio/openyurt/cmd/yurt-manager/app/client"
"github.com/openyurtio/openyurt/cmd/yurt-manager/names"
"github.com/openyurtio/openyurt/pkg/yurtmanager/webhook/util"
v1 "k8s.io/api/core/v1"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/webhook"

yurtClient "github.com/openyurtio/openyurt/cmd/yurt-manager/app/client"
"github.com/openyurtio/openyurt/cmd/yurt-manager/names"
"github.com/openyurtio/openyurt/pkg/yurtmanager/webhook/util"
)

const (
Expand Down

0 comments on commit 28d3012

Please sign in to comment.