Skip to content

Commit

Permalink
gofmt (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzub authored Oct 8, 2017
1 parent 492cd1b commit aa48cf2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NAME?=kube-router
DEV_SUFFIX?=-git
LOCAL_PACKAGES?=app app/controllers app/options app/watchers
LOCAL_PACKAGES?=app app/controllers app/options app/watchers utils
IMG_NAMESPACE?=cloudnativelabs
GIT_COMMIT=$(shell git describe --tags --dirty)
GIT_BRANCH?=$(shell git rev-parse --abbrev-ref HEAD)
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/network_policy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import (
"github.com/cloudnativelabs/kube-router/utils"
"github.com/coreos/go-iptables/iptables"
"github.com/golang/glog"
"k8s.io/client-go/kubernetes"
api "k8s.io/api/core/v1"
apiextensions "k8s.io/api/extensions/v1beta1"
networking "k8s.io/api/networking/v1"
"k8s.io/client-go/kubernetes"
)

// Network policy controller provides an ingress firewall for the pods as per the defined network policies.
Expand Down
2 changes: 1 addition & 1 deletion app/watchers/endpoints_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"time"

"github.com/cloudnativelabs/kube-router/utils"
api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/kubernetes"
api "k8s.io/api/core/v1"
cache "k8s.io/client-go/tools/cache"
)

Expand Down
2 changes: 1 addition & 1 deletion app/watchers/namespace_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"time"

"github.com/cloudnativelabs/kube-router/utils"
api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/kubernetes"
listers "k8s.io/client-go/listers/core/v1"
api "k8s.io/api/core/v1"
cache "k8s.io/client-go/tools/cache"
)

Expand Down
4 changes: 2 additions & 2 deletions app/watchers/network_policy_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"time"

"github.com/cloudnativelabs/kube-router/utils"
apiextensions "k8s.io/api/extensions/v1beta1"
networking "k8s.io/api/networking/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/kubernetes"
apiextensions "k8s.io/api/extensions/v1beta1"
networking "k8s.io/api/networking/v1"
cache "k8s.io/client-go/tools/cache"
)

Expand Down
2 changes: 1 addition & 1 deletion app/watchers/node_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"time"

"github.com/cloudnativelabs/kube-router/utils"
api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/kubernetes"
api "k8s.io/api/core/v1"
cache "k8s.io/client-go/tools/cache"
)

Expand Down
2 changes: 1 addition & 1 deletion app/watchers/pods_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"time"

"github.com/cloudnativelabs/kube-router/utils"
api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/kubernetes"
listers "k8s.io/client-go/listers/core/v1"
api "k8s.io/api/core/v1"
cache "k8s.io/client-go/tools/cache"
)

Expand Down
2 changes: 1 addition & 1 deletion app/watchers/services_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"time"

"github.com/cloudnativelabs/kube-router/utils"
api "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/kubernetes"
api "k8s.io/api/core/v1"
cache "k8s.io/client-go/tools/cache"
)

Expand Down
2 changes: 1 addition & 1 deletion utils/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net"
"os"

apiv1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
apiv1 "k8s.io/api/core/v1"
)

// GetNodeObject returns the node API object for the node
Expand Down

0 comments on commit aa48cf2

Please sign in to comment.