Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvaraj Kakaraparthi committed Feb 1, 2023
1 parent 9ceca6a commit e7fe3e1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (
"bytes"
"context"
"fmt"
"github.com/blang/semver"
"reflect"
"testing"
"time"

"github.com/blang/semver"
ignition "github.com/flatcar/ignition/config/v2_3"
. "github.com/onsi/gomega"
corev1 "k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/controllers/machine/machine_controller_noderef.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (r *Reconciler) getNode(ctx context.Context, c client.Reader, providerID *n

func (r *Reconciler) reconcileNodeTaints(ctx context.Context, remoteClient client.Client, node *corev1.Node) error {
log := ctrl.LoggerFrom(ctx)
var taints []corev1.Taint
taints := []corev1.Taint{}
patchHelper, err := patch.NewHelper(node, remoteClient)
if err != nil {
return errors.Wrap(err, "failed to create patch helper")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ package machine

import (
"fmt"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/types"
"testing"

. "github.com/onsi/gomega"
"github.com/onsi/gomega/format"
"github.com/onsi/gomega/types"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down
2 changes: 1 addition & 1 deletion internal/controllers/machine/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package machine
import (
"context"
"fmt"
corev1 "k8s.io/api/core/v1"
"os"
"testing"
"time"
Expand All @@ -28,6 +27,7 @@ import (
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down

0 comments on commit e7fe3e1

Please sign in to comment.