Skip to content

Commit e7fe3e1

Browse files
author
Yuvaraj Kakaraparthi
committed
fix lint issues
1 parent 9ceca6a commit e7fe3e1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

bootstrap/kubeadm/internal/controllers/kubeadmconfig_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import (
2020
"bytes"
2121
"context"
2222
"fmt"
23-
"github.com/blang/semver"
2423
"reflect"
2524
"testing"
2625
"time"
2726

27+
"github.com/blang/semver"
2828
ignition "github.com/flatcar/ignition/config/v2_3"
2929
. "github.com/onsi/gomega"
3030
corev1 "k8s.io/api/core/v1"

internal/controllers/machine/machine_controller_noderef.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (r *Reconciler) getNode(ctx context.Context, c client.Reader, providerID *n
270270

271271
func (r *Reconciler) reconcileNodeTaints(ctx context.Context, remoteClient client.Client, node *corev1.Node) error {
272272
log := ctrl.LoggerFrom(ctx)
273-
var taints []corev1.Taint
273+
taints := []corev1.Taint{}
274274
patchHelper, err := patch.NewHelper(node, remoteClient)
275275
if err != nil {
276276
return errors.Wrap(err, "failed to create patch helper")

internal/controllers/machine/machine_controller_noderef_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ package machine
1818

1919
import (
2020
"fmt"
21-
"github.com/onsi/gomega/format"
22-
"github.com/onsi/gomega/types"
2321
"testing"
2422

2523
. "github.com/onsi/gomega"
24+
"github.com/onsi/gomega/format"
25+
"github.com/onsi/gomega/types"
2626
corev1 "k8s.io/api/core/v1"
2727
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2828
ctrl "sigs.k8s.io/controller-runtime"

internal/controllers/machine/suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package machine
1919
import (
2020
"context"
2121
"fmt"
22-
corev1 "k8s.io/api/core/v1"
2322
"os"
2423
"testing"
2524
"time"
@@ -28,6 +27,7 @@ import (
2827
. "github.com/onsi/gomega"
2928
"github.com/onsi/gomega/types"
3029
"github.com/pkg/errors"
30+
corev1 "k8s.io/api/core/v1"
3131
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
3232
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3333
"k8s.io/apimachinery/pkg/runtime"

0 commit comments

Comments
 (0)