From e270ccf54310b47ee7fff20b75fdf19e78da9530 Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Fri, 1 Jul 2016 16:26:17 -0700 Subject: [PATCH] integration: cleanup unused API --- test/integration/framework/etcd_utils.go | 39 ------------------------ 1 file changed, 39 deletions(-) diff --git a/test/integration/framework/etcd_utils.go b/test/integration/framework/etcd_utils.go index ee40ed11aa..e22caca0fe 100644 --- a/test/integration/framework/etcd_utils.go +++ b/test/integration/framework/etcd_utils.go @@ -24,10 +24,6 @@ import ( "github.com/golang/glog" "golang.org/x/net/context" - "k8s.io/kubernetes/pkg/api/testapi" - "k8s.io/kubernetes/pkg/storage" - etcdstorage "k8s.io/kubernetes/pkg/storage/etcd" - "k8s.io/kubernetes/pkg/storage/etcd/etcdtest" "k8s.io/kubernetes/pkg/util/env" ) @@ -55,41 +51,6 @@ func NewEtcdClient() etcd.Client { return client } -func NewAutoscalingEtcdStorage(client etcd.Client) storage.Interface { - if client == nil { - client = NewEtcdClient() - } - return etcdstorage.NewEtcdStorage(client, testapi.Autoscaling.Codec(), etcdtest.PathPrefix(), false, etcdtest.DeserializationCacheSize) -} - -func NewBatchEtcdStorage(client etcd.Client) storage.Interface { - if client == nil { - client = NewEtcdClient() - } - return etcdstorage.NewEtcdStorage(client, testapi.Batch.Codec(), etcdtest.PathPrefix(), false, etcdtest.DeserializationCacheSize) -} - -func NewAppsEtcdStorage(client etcd.Client) storage.Interface { - if client == nil { - client = NewEtcdClient() - } - return etcdstorage.NewEtcdStorage(client, testapi.Apps.Codec(), etcdtest.PathPrefix(), false, etcdtest.DeserializationCacheSize) -} - -func NewExtensionsEtcdStorage(client etcd.Client) storage.Interface { - if client == nil { - client = NewEtcdClient() - } - return etcdstorage.NewEtcdStorage(client, testapi.Extensions.Codec(), etcdtest.PathPrefix(), false, etcdtest.DeserializationCacheSize) -} - -func NewRbacEtcdStorage(client etcd.Client) storage.Interface { - if client == nil { - client = NewEtcdClient() - } - return etcdstorage.NewEtcdStorage(client, testapi.Rbac.Codec(), etcdtest.PathPrefix(), false, etcdtest.DeserializationCacheSize) -} - func RequireEtcd() { if _, err := etcd.NewKeysAPI(NewEtcdClient()).Get(context.TODO(), "/", nil); err != nil { glog.Fatalf("unable to connect to etcd for testing: %v", err)