Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer committed Nov 15, 2024
1 parent d4f3e13 commit 60f8c02
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/controllers/rediscluster/rediscluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package rediscluster
import (
"context"
"fmt"
"sigs.k8s.io/controller-runtime/pkg/log"
"time"

"github.com/OT-CONTAINER-KIT/redis-operator/api/status"
Expand All @@ -33,6 +32,7 @@ import (
"k8s.io/client-go/kubernetes"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/log"
)

// Reconciler reconciles a RedisCluster object
Expand Down
2 changes: 1 addition & 1 deletion pkg/controllerutil/controller_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package controllerutil

import (
"context"
"sigs.k8s.io/controller-runtime/pkg/log"
"time"

apierrors "k8s.io/apimachinery/pkg/api/errors"
"sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/reconcile"
)

Expand Down
2 changes: 0 additions & 2 deletions pkg/k8sutils/finalizer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ func TestHandleRedisClusterFinalizer(t *testing.T) {

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {

var k8sClient *k8sClientFake.Clientset
if tc.existingPVC != nil {
k8sClient = k8sClientFake.NewSimpleClientset(helperToRuntimeObjects(tc.existingPVC)...)
Expand Down Expand Up @@ -460,7 +459,6 @@ func TestHandleRedisReplicationFinalizer(t *testing.T) {

for _, tc := range tests {
t.Run(tc.name, func(t *testing.T) {

var k8sClient *k8sClientFake.Clientset
if tc.existingPVC != nil {
k8sClient = k8sClientFake.NewSimpleClientset(helperToRuntimeObjects(tc.existingPVC)...)
Expand Down

0 comments on commit 60f8c02

Please sign in to comment.