Skip to content

Commit

Permalink
Merge pull request #484 from mgleung/update_pkg
Browse files Browse the repository at this point in the history
Updated the import for logrus to use lowercasing
  • Loading branch information
robbrockbank authored Jul 31, 2017
2 parents 73b7a64 + f43a1fd commit 93f9e49
Show file tree
Hide file tree
Showing 52 changed files with 74 additions and 60 deletions.
30 changes: 22 additions & 8 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ owners:
- name: Rob Brockbank
email: [email protected]
import:
- package: github.com/Sirupsen/logrus
- package: github.com/sirupsen/logrus
version: ^0.10.0
- package: github.com/coreos/etcd
subpackages:
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"errors"
"fmt"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/api"
bapi "github.com/projectcalico/libcalico-go/lib/backend/api"
"github.com/projectcalico/libcalico-go/lib/backend/compat"
"github.com/projectcalico/libcalico-go/lib/backend/etcd"
"github.com/projectcalico/libcalico-go/lib/backend/k8s"
log "github.com/sirupsen/logrus"
)

// NewClient creates a new backend datastore client.
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/compat/compat.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/json"
goerrors "errors"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

"github.com/projectcalico/libcalico-go/lib/backend/api"
"github.com/projectcalico/libcalico-go/lib/backend/model"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ import (

"time"

log "github.com/Sirupsen/logrus"
etcd "github.com/coreos/etcd/client"
"github.com/coreos/etcd/pkg/transport"
capi "github.com/projectcalico/libcalico-go/lib/api"
"github.com/projectcalico/libcalico-go/lib/backend/api"
"github.com/projectcalico/libcalico-go/lib/backend/model"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/backend/etcd/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import (

"net"

log "github.com/Sirupsen/logrus"
"github.com/coreos/etcd/client"
etcd "github.com/coreos/etcd/client"
"github.com/projectcalico/libcalico-go/lib/backend/api"
"github.com/projectcalico/libcalico-go/lib/backend/model"
"github.com/projectcalico/libcalico-go/lib/hwm"
log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
)

Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"sort"
"strings"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
kapiv1 "k8s.io/client-go/pkg/api/v1"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"strings"
"time"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

capi "github.com/projectcalico/libcalico-go/lib/api"
"github.com/projectcalico/libcalico-go/lib/backend/api"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/k8s_fv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

capi "github.com/projectcalico/libcalico-go/lib/api"
"github.com/projectcalico/libcalico-go/lib/backend/api"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/resources/customnoderesource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/projectcalico/libcalico-go/lib/backend/model"
"github.com/projectcalico/libcalico-go/lib/errors"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/resources/customresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ package resources
import (
"reflect"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/backend/model"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"

kerrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/resources/names.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/projectcalico/libcalico-go/lib/net"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
)

// This file contains various name conversion methods that can be used to convert
Expand Down
4 changes: 2 additions & 2 deletions lib/backend/k8s/resources/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resources

import (
log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

"github.com/projectcalico/libcalico-go/lib/backend/model"
"github.com/projectcalico/libcalico-go/lib/errors"
Expand All @@ -27,7 +27,7 @@ import (

const (
nodeBgpIpv4CidrAnnotation = "projectcalico.org/IPv4Address"
nodeBgpAsnAnnotation = "projectcalico.org/ASNumber"
nodeBgpAsnAnnotation = "projectcalico.org/ASNumber"
)

func NewNodeClient(c *kubernetes.Clientset, r *rest.RESTClient) K8sResourceClient {
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/resources/retrywrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package resources
import (
"github.com/projectcalico/libcalico-go/lib/backend/model"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ package k8s
import (
"time"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/backend/api"
"github.com/projectcalico/libcalico-go/lib/backend/compat"
"github.com/projectcalico/libcalico-go/lib/backend/k8s/resources"
"github.com/projectcalico/libcalico-go/lib/backend/model"
log "github.com/sirupsen/logrus"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/k8s/syncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ package k8s
import (
"sync"

log "github.com/Sirupsen/logrus"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/projectcalico/libcalico-go/lib/backend/api"
"github.com/projectcalico/libcalico-go/lib/backend/model"
"github.com/projectcalico/libcalico-go/lib/net"
log "github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/watch"
k8sapi "k8s.io/client-go/pkg/api/v1"
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/bgpconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"reflect"
"regexp"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

"github.com/projectcalico/libcalico-go/lib/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/bgppeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (

"reflect"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
"github.com/projectcalico/libcalico-go/lib/net"
"github.com/projectcalico/libcalico-go/lib/numorstring"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"regexp"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
"github.com/projectcalico/libcalico-go/lib/net"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/block_affinity.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"regexp"
"strings"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
"github.com/projectcalico/libcalico-go/lib/net"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/felixconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"reflect"
"regexp"

log "github.com/Sirupsen/logrus"
log "github.com/sirupsen/logrus"

"github.com/projectcalico/libcalico-go/lib/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/hostendpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (

"reflect"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
"github.com/projectcalico/libcalico-go/lib/net"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/hostendpointstatus.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

"reflect"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/ipam_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"reflect"
"regexp"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/ippool.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (

"reflect"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
"github.com/projectcalico/libcalico-go/lib/ipip"
"github.com/projectcalico/libcalico-go/lib/net"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
net2 "net"
"time"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/net"
log "github.com/sirupsen/logrus"
)

// RawString is used a value type to indicate that the value is a bare non-JSON string
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (

"reflect"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
"github.com/projectcalico/libcalico-go/lib/net"
"github.com/projectcalico/libcalico-go/lib/numorstring"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"strings"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

"sort"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lib/backend/model/statusreports.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"reflect"
"regexp"

log "github.com/Sirupsen/logrus"
"github.com/projectcalico/libcalico-go/lib/errors"
log "github.com/sirupsen/logrus"
)

var (
Expand Down
Loading

0 comments on commit 93f9e49

Please sign in to comment.