Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
e0b1336e
Commit
e0b1336e
authored
Jul 01, 2016
by
k8s-merge-robot
Committed by
GitHub
Jul 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #28391 from hongchaodeng/cleanup
Automatic merge from submit-queue integration: cleanup unused API
parents
85f75daf
e270ccf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
39 deletions
+0
-39
etcd_utils.go
test/integration/framework/etcd_utils.go
+0
-39
No files found.
test/integration/framework/etcd_utils.go
View file @
e0b1336e
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment