Skip to content

Commit

Permalink
move NEG stuff into pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
freehan committed Oct 26, 2017
1 parent 64c563a commit 75a3563
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 15 deletions.
3 changes: 1 addition & 2 deletions cmd/glbc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,10 @@ import (
"k8s.io/ingress-gce/pkg/context"
"k8s.io/ingress-gce/pkg/controller"
"k8s.io/ingress-gce/pkg/loadbalancers"
neg "k8s.io/ingress-gce/pkg/networkendpointgroup"
"k8s.io/ingress-gce/pkg/storage"
"k8s.io/ingress-gce/pkg/utils"

neg "k8s.io/ingress-gce/networkendpointgroup"

"k8s.io/kubernetes/pkg/cloudprovider"
"k8s.io/kubernetes/pkg/cloudprovider/providers/gce"
)
Expand Down
5 changes: 2 additions & 3 deletions pkg/backends/backends_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ import (
compute "google.golang.org/api/compute/v1"
"google.golang.org/api/googleapi"
api_v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/sets"
"k8s.io/apimachinery/pkg/types"

"k8s.io/ingress-gce/pkg/healthchecks"
"k8s.io/ingress-gce/pkg/instances"
"k8s.io/ingress-gce/pkg/networkendpointgroup"
"k8s.io/ingress-gce/pkg/storage"
"k8s.io/ingress-gce/pkg/utils"

"k8s.io/ingress-gce/networkendpointgroup"
)

const defaultZone = "zone-a"
Expand Down
3 changes: 1 addition & 2 deletions pkg/controller/fakes.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ import (
"k8s.io/ingress-gce/pkg/healthchecks"
"k8s.io/ingress-gce/pkg/instances"
"k8s.io/ingress-gce/pkg/loadbalancers"
"k8s.io/ingress-gce/pkg/networkendpointgroup"
"k8s.io/ingress-gce/pkg/utils"

"k8s.io/ingress-gce/networkendpointgroup"
)

var (
Expand Down
3 changes: 1 addition & 2 deletions pkg/loadbalancers/loadbalancers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ import (
"k8s.io/ingress-gce/pkg/backends"
"k8s.io/ingress-gce/pkg/healthchecks"
"k8s.io/ingress-gce/pkg/instances"
"k8s.io/ingress-gce/pkg/networkendpointgroup"
"k8s.io/ingress-gce/pkg/utils"

"k8s.io/ingress-gce/networkendpointgroup"
)

const (
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/ingress-gce/context"
"k8s.io/ingress-gce/utils"
"k8s.io/ingress-gce/pkg/context"
"k8s.io/ingress-gce/pkg/utils"

"k8s.io/apimachinery/pkg/util/intstr"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/tools/record"
"k8s.io/ingress-gce/context"
"k8s.io/ingress-gce/utils"
"k8s.io/ingress-gce/pkg/context"
"k8s.io/ingress-gce/pkg/utils"
"testing"
"time"
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"k8s.io/apimachinery/pkg/util/wait"
"k8s.io/client-go/kubernetes/fake"
"k8s.io/client-go/tools/record"
"k8s.io/ingress-gce/utils"
"k8s.io/ingress-gce/pkg/context"
"reflect"
"testing"
"time"
Expand All @@ -22,7 +22,7 @@ const (

func NewTestSyncer() *syncer {
kubeClient := fake.NewSimpleClientset()
context := utils.NewControllerContext(kubeClient, apiv1.NamespaceAll, 1*time.Second, true)
context := context.NewControllerContext(kubeClient, apiv1.NamespaceAll, 1*time.Second, true)
svcPort := servicePort{
namespace: ServiceNamespace,
name: ServiceName,
Expand Down

0 comments on commit 75a3563

Please sign in to comment.