Skip to content

Commit

Permalink
remove duplicate v1core package
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbbrown authored and stevesloka committed Mar 15, 2017
1 parent 8f620e3 commit a22f641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions k8sutil/k8sutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/Sirupsen/logrus"
"k8s.io/client-go/kubernetes"
coreType "k8s.io/client-go/kubernetes/typed/core/v1"
v1core "k8s.io/client-go/kubernetes/typed/core/v1"
"k8s.io/client-go/pkg/api/v1"
"k8s.io/client-go/pkg/fields"
"k8s.io/client-go/rest"
Expand All @@ -20,7 +19,7 @@ type KubeInterface interface {
Secrets(namespace string) coreType.SecretInterface
Namespaces() coreType.NamespaceInterface
ServiceAccounts(namespace string) coreType.ServiceAccountInterface
Core() v1core.CoreV1Interface
Core() coreType.CoreV1Interface
}

type K8sutilInterface struct {
Expand Down
3 changes: 1 addition & 2 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"golang.org/x/net/context"
"golang.org/x/oauth2"
coreType "k8s.io/client-go/kubernetes/typed/core/v1"
v1core "k8s.io/client-go/kubernetes/typed/core/v1"
v1fake "k8s.io/client-go/kubernetes/typed/core/v1/fake"
"k8s.io/client-go/pkg/api"
"k8s.io/client-go/pkg/api/v1"
Expand Down Expand Up @@ -46,7 +45,7 @@ type fakeNamespaces struct {
store map[string]v1.Namespace
}

func (f *fakeKubeClient) Core() v1core.CoreV1Interface {
func (f *fakeKubeClient) Core() coreType.CoreV1Interface {
return &v1fake.FakeCoreV1{}
}

Expand Down

0 comments on commit a22f641

Please sign in to comment.