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
1fdf7492
Commit
1fdf7492
authored
Mar 02, 2015
by
Daniel Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix e2e failure
parent
c4822dc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
scheme.go
pkg/runtime/scheme.go
+6
-7
No files found.
pkg/runtime/scheme.go
View file @
1fdf7492
...
@@ -322,14 +322,13 @@ func (s *Scheme) Convert(in, out interface{}) error {
...
@@ -322,14 +322,13 @@ func (s *Scheme) Convert(in, out interface{}) error {
// Converts the given field label and value for an apiResource field selector from
// Converts the given field label and value for an apiResource field selector from
// versioned representation to an unversioned one.
// versioned representation to an unversioned one.
func
(
s
*
Scheme
)
ConvertFieldLabel
(
version
,
apiResource
,
label
,
value
string
)
(
string
,
string
,
error
)
{
func
(
s
*
Scheme
)
ConvertFieldLabel
(
version
,
apiResource
,
label
,
value
string
)
(
string
,
string
,
error
)
{
if
s
.
fieldLabelConversionFuncs
[
version
]
==
nil
{
if
typeFuncMap
,
ok
:=
s
.
fieldLabelConversionFuncs
[
version
];
ok
{
return
""
,
""
,
fmt
.
Errorf
(
"No conversion function found for version: %s"
,
version
)
if
conversionFunc
,
ok
:=
typeFuncMap
[
apiResource
];
ok
{
}
return
conversionFunc
(
label
,
value
)
conversionFunc
,
ok
:=
s
.
fieldLabelConversionFuncs
[
version
][
apiResource
]
}
if
!
ok
{
return
""
,
""
,
fmt
.
Errorf
(
"No conversion function found for version %s and api resource %s"
,
version
,
apiResource
)
}
}
return
conversionFunc
(
label
,
value
)
// Don't fail on types we haven't added conversion funcs for yet.
return
label
,
value
,
nil
}
}
// ConvertToVersion attempts to convert an input object to its matching Kind in another
// ConvertToVersion attempts to convert an input object to its matching Kind in another
...
...
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