Skip to content

Commit 8227730

Browse files
committed
ensure imports stay organized
1 parent 591631e commit 8227730

File tree

14 files changed

+29
-22
lines changed

14 files changed

+29
-22
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ linters:
1111
- deadcode
1212
- goconst
1313
- gofmt
14+
- goimports
1415
- golint
1516
- gosec
1617
- govet

api/v1alpha3/azuremachine_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ package v1alpha3
1818

1919
import (
2020
"encoding/base64"
21-
"k8s.io/apimachinery/pkg/util/uuid"
2221

2322
"golang.org/x/crypto/ssh"
23+
"k8s.io/apimachinery/pkg/util/uuid"
2424

2525
utilSSH "sigs.k8s.io/cluster-api-provider-azure/util/ssh"
2626
)

cloud/converters/dns_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ limitations under the License.
1717
package converters
1818

1919
import (
20+
"testing"
21+
2022
"github.com/Azure/azure-sdk-for-go/profiles/latest/privatedns/mgmt/privatedns"
2123
"github.com/onsi/gomega"
22-
"testing"
2324
)
2425

2526
func Test_GetRecordType(t *testing.T) {

cloud/converters/identity.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ limitations under the License.
1717
package converters
1818

1919
import (
20+
"strings"
21+
2022
"github.com/Azure/azure-sdk-for-go/profiles/latest/compute/mgmt/compute"
2123
"github.com/pkg/errors"
24+
2225
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1alpha3"
23-
"strings"
2426
)
2527

2628
// ErrUserAssignedIdentitiesNotFound is the error thrown when user assigned identities is not passed with the identity type being UserAssigned

cloud/services/inboundnatrules/inboundnatrules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ package inboundnatrules
1818

1919
import (
2020
"context"
21-
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/loadbalancers"
2221

2322
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"
2423
"github.com/Azure/go-autorest/autorest/to"
2524
"github.com/go-logr/logr"
2625
"github.com/pkg/errors"
2726

2827
azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
28+
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/loadbalancers"
2929
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
3030
)
3131

cloud/services/privatedns/client.go

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

1919
import (
2020
"context"
21-
"github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns"
22-
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
2321

22+
"github.com/Azure/azure-sdk-for-go/services/privatedns/mgmt/2018-09-01/privatedns"
2423
"github.com/Azure/go-autorest/autorest"
24+
2525
azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
26+
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
2627
)
2728

2829
// Client wraps go-sdk

cloud/services/privatedns/privatedns.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ package privatedns
1818

1919
import (
2020
"context"
21+
2122
"github.com/Azure/azure-sdk-for-go/profiles/latest/privatedns/mgmt/privatedns"
2223
"github.com/Azure/go-autorest/autorest/to"
23-
"sigs.k8s.io/cluster-api-provider-azure/cloud/converters"
24-
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
25-
2624
"github.com/go-logr/logr"
2725
"github.com/pkg/errors"
2826

2927
azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
28+
"sigs.k8s.io/cluster-api-provider-azure/cloud/converters"
29+
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
3030
)
3131

3232
// Scope defines the scope interface for a private dns service.

cloud/services/publicips/publicips.go

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

1919
import (
2020
"context"
21-
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1alpha3"
22-
"sigs.k8s.io/cluster-api-provider-azure/cloud/converters"
2321
"strings"
2422

2523
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-06-01/network"
2624
"github.com/Azure/go-autorest/autorest/to"
2725
"github.com/go-logr/logr"
2826
"github.com/pkg/errors"
2927

28+
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1alpha3"
3029
azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
30+
"sigs.k8s.io/cluster-api-provider-azure/cloud/converters"
3131
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
3232
)
3333

cloud/services/tags/tags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ package tags
1818

1919
import (
2020
"context"
21-
azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
2221

2322
"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2019-10-01/resources"
2423
"github.com/Azure/go-autorest/autorest/to"
2524
"github.com/go-logr/logr"
2625
"github.com/pkg/errors"
2726

27+
azure "sigs.k8s.io/cluster-api-provider-azure/cloud"
2828
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
2929
)
3030

controllers/azurecluster_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package controllers
1818

1919
import (
2020
"context"
21-
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/privatedns"
2221

2322
"github.com/pkg/errors"
2423
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
@@ -27,6 +26,7 @@ import (
2726
"sigs.k8s.io/cluster-api-provider-azure/cloud/scope"
2827
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/groups"
2928
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/loadbalancers"
29+
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/privatedns"
3030
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/publicips"
3131
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/resourceskus"
3232
"sigs.k8s.io/cluster-api-provider-azure/cloud/services/routetables"

0 commit comments

Comments
 (0)