Skip to content

Commit e374334

Browse files
committed
Fix linter issues
1 parent 4cb2512 commit e374334

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

operator/internal/controller/redpanda/topic_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (r *TopicReconciler) Reconcile(ctx context.Context, req mcreconcile.Request
101101
}
102102

103103
l.Info("reconciling topic")
104-
topic, result, err := r.reconcile(ctx, k8sClient, r.getRecorder(cluster), topic, l)
104+
topic, result, err := r.reconcile(ctx, r.getRecorder(cluster), topic, l)
105105

106106
l.Info("updating topic status")
107107
// Update status after reconciliation.
@@ -169,7 +169,7 @@ func SetupTopicController(ctx context.Context, mgr multicluster.Manager, expande
169169
return builder.Complete(r)
170170
}
171171

172-
func (r *TopicReconciler) reconcile(ctx context.Context, k8sClient client.Client, recorder record.EventRecorder, topic *redpandav1alpha2.Topic, l logr.Logger) (*redpandav1alpha2.Topic, ctrl.Result, error) {
172+
func (r *TopicReconciler) reconcile(ctx context.Context, recorder record.EventRecorder, topic *redpandav1alpha2.Topic, l logr.Logger) (*redpandav1alpha2.Topic, ctrl.Result, error) {
173173
l = l.WithName("reconcile")
174174

175175
interval := metav1.Duration{Duration: time.Second * 3}

operator/internal/lifecycle/client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"testing"
1717
"time"
1818

19-
"github.com/redpanda-data/redpanda-operator/pkg/multicluster"
2019
"github.com/stretchr/testify/require"
2120
"go.uber.org/zap/zapcore"
2221
appsv1 "k8s.io/api/apps/v1"
@@ -33,6 +32,8 @@ import (
3332
"sigs.k8s.io/controller-runtime/pkg/log/zap"
3433
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
3534
mcmanager "sigs.k8s.io/multicluster-runtime/pkg/manager"
35+
36+
"github.com/redpanda-data/redpanda-operator/pkg/multicluster"
3637
)
3738

3839
var parentCtx = context.Background()

0 commit comments

Comments
 (0)