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
e2d02abb
Commit
e2d02abb
authored
Jan 26, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fixture for #17922
parent
c1b4d28a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
fixture.go
pkg/client/testing/core/fixture.go
+2
-6
No files found.
pkg/client/testing/core/fixture.go
View file @
e2d02abb
...
...
@@ -153,12 +153,8 @@ func NewObjects(scheme ObjectScheme, decoder runtime.Decoder) ObjectRetriever {
}
func
(
o
objects
)
Kind
(
kind
unversioned
.
GroupVersionKind
,
name
string
)
(
runtime
.
Object
,
error
)
{
// TODO our test clients deal in internal versions. We need to plumb that knowledge down here
// we might do this via an extra function to the scheme to allow getting internal group versions
// I'm punting for now
kind
.
Version
=
""
empty
,
_
:=
o
.
scheme
.
New
(
kind
)
kind
.
Version
=
runtime
.
APIVersionInternal
empty
,
err
:=
o
.
scheme
.
New
(
kind
)
nilValue
:=
reflect
.
Zero
(
reflect
.
TypeOf
(
empty
))
.
Interface
()
.
(
runtime
.
Object
)
arr
,
ok
:=
o
.
types
[
kind
.
Kind
]
...
...
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