Skip to content

Commit

Permalink
Merge pull request #1737 from tariq1890/fix-goimports
Browse files Browse the repository at this point in the history
fix goimports local import order and update golangci-lint
  • Loading branch information
k8s-ci-robot authored Aug 20, 2020
2 parents 5e82df7 + 600f4f1 commit fca0c7e
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.26.0
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.30.0
make lint
- name: Coverage
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ linters-settings:
exhaustive:
default-signifies-exhaustive: false
goimports:
local-prefixes: github.com/kubernetes-sigs/external-dns
local-prefixes: sigs.k8s.io/external-dns
golint:
min-confidence: 0.9
maligned:
Expand Down
4 changes: 2 additions & 2 deletions internal/testutils/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package testutils

import (
"io/ioutil"
"os"

"log"
"os"

"github.com/sirupsen/logrus"

"sigs.k8s.io/external-dns/internal/config"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (

"github.com/prometheus/client_golang/prometheus/promhttp"
log "github.com/sirupsen/logrus"

_ "k8s.io/client-go/plugin/pkg/client/auth"

"sigs.k8s.io/external-dns/controller"
"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/pkg/apis/externaldns"
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/externaldns/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

"github.com/alecthomas/kingpin"
"github.com/sirupsen/logrus"

"sigs.k8s.io/external-dns/source"
)

Expand Down
1 change: 1 addition & 0 deletions provider/akamai/akamai.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
c "github.com/akamai/AkamaiOPEN-edgegrid-golang/client-v1"
"github.com/akamai/AkamaiOPEN-edgegrid-golang/edgegrid"
log "github.com/sirupsen/logrus"

"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/plan"
"sigs.k8s.io/external-dns/provider"
Expand Down
1 change: 1 addition & 0 deletions provider/hetzner/hetzner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (

hclouddns "git.blindage.org/21h/hcloud-dns"
log "github.com/sirupsen/logrus"

"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/plan"
"sigs.k8s.io/external-dns/provider"
Expand Down
4 changes: 2 additions & 2 deletions provider/scaleway/scaleway.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ import (
domain "github.com/scaleway/scaleway-sdk-go/api/domain/v2alpha2"
"github.com/scaleway/scaleway-sdk-go/scw"
log "github.com/sirupsen/logrus"

"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/pkg/apis/externaldns"
"sigs.k8s.io/external-dns/plan"
"sigs.k8s.io/external-dns/provider"

"sigs.k8s.io/external-dns/pkg/apis/externaldns"
)

const (
Expand Down
1 change: 1 addition & 0 deletions provider/ultradns/ultradns.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (

log "github.com/sirupsen/logrus"
udnssdk "github.com/ultradns/ultradns-sdk-go"

"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/plan"
"sigs.k8s.io/external-dns/provider"
Expand Down
1 change: 1 addition & 0 deletions provider/vultr/vultr.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (

log "github.com/sirupsen/logrus"
"github.com/vultr/govultr"

"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/plan"
"sigs.k8s.io/external-dns/provider"
Expand Down
1 change: 1 addition & 0 deletions source/routegroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"time"

log "github.com/sirupsen/logrus"

"sigs.k8s.io/external-dns/endpoint"
)

Expand Down
1 change: 1 addition & 0 deletions source/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/util/wait"

"sigs.k8s.io/external-dns/endpoint"
"sigs.k8s.io/external-dns/internal/config"
)
Expand Down

0 comments on commit fca0c7e

Please sign in to comment.