Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreylimnardy committed Dec 16, 2024
1 parent 0cd33f1 commit 32f0d51
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions internal/reconciler/logpipeline/fluentbit/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,11 @@ import (
"errors"
"fmt"
"os"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/interceptor"
"testing"
"time"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
networkingv1 "k8s.io/api/networking/v1"
rbacv1 "k8s.io/api/rbac/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/interceptor"

telemetryv1alpha1 "github.com/kyma-project/telemetry-manager/apis/telemetry/v1alpha1"
"github.com/kyma-project/telemetry-manager/internal/conditions"
Expand All @@ -38,6 +24,20 @@ import (
"github.com/kyma-project/telemetry-manager/internal/validators/secretref"
"github.com/kyma-project/telemetry-manager/internal/validators/tlscert"
"github.com/kyma-project/telemetry-manager/internal/workloadstatus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
networkingv1 "k8s.io/api/networking/v1"
rbacv1 "k8s.io/api/rbac/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
"sigs.k8s.io/controller-runtime/pkg/client/fake"
)

func TestReconcile(t *testing.T) {
Expand Down Expand Up @@ -1082,7 +1082,9 @@ func TestCalculateChecksum(t *testing.T) {

func TestCreateOrUpdateFluentBit(t *testing.T) {
var objects []client.Object

var logPipe telemetryv1alpha1.LogPipeline

scheme := runtime.NewScheme()
_ = clientgoscheme.AddToScheme(scheme)
_ = telemetryv1alpha1.AddToScheme(scheme)
Expand Down

0 comments on commit 32f0d51

Please sign in to comment.