Skip to content

Commit 20b101f

Browse files
embikkcp-ci-bot
authored andcommitted
Fix linting issues in github.com/kcp-dev/apimachinery staging repository
On-behalf-of: SAP <[email protected]> Signed-off-by: Marvin Beckers <[email protected]> Kcp-commit: f7cc233c887e095321ecf4a96705ac0decbf3822
1 parent ffcd6d4 commit 20b101f

File tree

9 files changed

+18
-15
lines changed

9 files changed

+18
-15
lines changed

pkg/cache/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ package cache
1919
import (
2020
"fmt"
2121

22-
"github.com/kcp-dev/logicalcluster/v3"
23-
2422
"k8s.io/apimachinery/pkg/api/meta"
23+
24+
"github.com/kcp-dev/logicalcluster/v3"
2525
)
2626

2727
const (

pkg/cache/controller_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ package cache
1919
import (
2020
"testing"
2121

22-
"github.com/kcp-dev/logicalcluster/v3"
2322
"github.com/stretchr/testify/require"
2423

2524
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
25+
26+
"github.com/kcp-dev/logicalcluster/v3"
2627
)
2728

2829
func TestClusterIndexFunc(t *testing.T) {

pkg/cache/informers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ package cache
1919
import (
2020
"context"
2121

22-
"github.com/kcp-dev/logicalcluster/v3"
23-
2422
"k8s.io/client-go/tools/cache"
23+
24+
"github.com/kcp-dev/logicalcluster/v3"
2525
)
2626

2727
// ScopeableSharedIndexInformer is an informer that knows how to scope itself down to one cluster,

pkg/cache/keyfunc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ import (
2020
"fmt"
2121
"strings"
2222

23-
"github.com/kcp-dev/logicalcluster/v3"
24-
2523
"k8s.io/apimachinery/pkg/api/meta"
2624
"k8s.io/client-go/tools/cache"
25+
26+
"github.com/kcp-dev/logicalcluster/v3"
2727
)
2828

2929
// DeletionHandlingMetaClusterNamespaceKeyFunc checks for

pkg/cache/keyfunc_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ import (
2121
"testing"
2222

2323
"github.com/google/go-cmp/cmp"
24-
"github.com/kcp-dev/logicalcluster/v3"
2524

2625
corev1 "k8s.io/api/core/v1"
2726
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2827
"k8s.io/client-go/tools/cache"
28+
29+
"github.com/kcp-dev/logicalcluster/v3"
2930
)
3031

3132
func TestDeletionHandlingMetaClusterNamespaceKeyFunc(t *testing.T) {

pkg/cache/listers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ limitations under the License.
1717
package cache
1818

1919
import (
20-
"github.com/kcp-dev/logicalcluster/v3"
21-
2220
"k8s.io/apimachinery/pkg/api/errors"
2321
"k8s.io/apimachinery/pkg/api/meta"
2422
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -28,6 +26,8 @@ import (
2826
"k8s.io/apimachinery/pkg/util/sets"
2927
"k8s.io/client-go/tools/cache"
3028
"k8s.io/klog/v2"
29+
30+
"github.com/kcp-dev/logicalcluster/v3"
3131
)
3232

3333
// ListAllByCluster used to list items belongs to a cluster from Indexer.

pkg/cache/listers_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ package cache
1919
import (
2020
"testing"
2121

22-
"github.com/kcp-dev/logicalcluster/v3"
2322
"github.com/stretchr/testify/require"
2423

2524
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
2625
"k8s.io/apimachinery/pkg/labels"
2726
"k8s.io/apimachinery/pkg/runtime/schema"
2827
"k8s.io/client-go/tools/cache"
28+
29+
"github.com/kcp-dev/logicalcluster/v3"
2930
)
3031

3132
func newUnstructured(cluster, namespace, name string, labels labels.Set) *unstructured.Unstructured {

pkg/client/cluster_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ limitations under the License.
1717
package client
1818

1919
import (
20-
"github.com/kcp-dev/logicalcluster/v3"
21-
2220
"k8s.io/client-go/rest"
21+
22+
"github.com/kcp-dev/logicalcluster/v3"
2323
)
2424

2525
// SetCluster modifies the config host path to include the

pkg/client/constructor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"net/http"
2121
"sync"
2222

23-
"github.com/kcp-dev/logicalcluster/v3"
24-
2523
"k8s.io/client-go/rest"
24+
25+
"github.com/kcp-dev/logicalcluster/v3"
2626
)
2727

2828
// Constructor is a wrapper around a constructor method for the client of type R.

0 commit comments

Comments
 (0)