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
b07071f8
Commit
b07071f8
authored
Apr 04, 2018
by
hangaoshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused function getEncodedPod in etcd_helper_test.go
parent
200bc669
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
etcd_helper_test.go
...src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper_test.go
+0
-8
No files found.
staging/src/k8s.io/apiserver/pkg/storage/etcd/etcd_helper_test.go
View file @
b07071f8
...
@@ -99,14 +99,6 @@ func newEtcdHelper(client etcd.Client, codec runtime.Codec, prefix string) etcdH
...
@@ -99,14 +99,6 @@ func newEtcdHelper(client etcd.Client, codec runtime.Codec, prefix string) etcdH
return
*
NewEtcdStorage
(
client
,
codec
,
prefix
,
false
,
etcdtest
.
DeserializationCacheSize
,
prefixTransformer
{
prefix
:
"test!"
})
.
(
*
etcdHelper
)
return
*
NewEtcdStorage
(
client
,
codec
,
prefix
,
false
,
etcdtest
.
DeserializationCacheSize
,
prefixTransformer
{
prefix
:
"test!"
})
.
(
*
etcdHelper
)
}
}
// Returns an encoded version of example.Pod with the given name.
func
getEncodedPod
(
name
string
,
codec
runtime
.
Codec
)
string
{
pod
,
_
:=
runtime
.
Encode
(
codec
,
&
examplev1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
name
},
})
return
string
(
pod
)
}
func
createObj
(
t
*
testing
.
T
,
helper
etcdHelper
,
name
string
,
obj
,
out
runtime
.
Object
,
ttl
uint64
)
error
{
func
createObj
(
t
*
testing
.
T
,
helper
etcdHelper
,
name
string
,
obj
,
out
runtime
.
Object
,
ttl
uint64
)
error
{
err
:=
helper
.
Create
(
context
.
TODO
(),
name
,
obj
,
out
,
ttl
)
err
:=
helper
.
Create
(
context
.
TODO
(),
name
,
obj
,
out
,
ttl
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
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