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
55cb45af
Commit
55cb45af
authored
Feb 23, 2016
by
Dan Gillespie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed NewDefaultRESTMapper to check for a partial package path
parent
aa9e1398
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mapper.go
pkg/api/mapper.go
+3
-3
No files found.
pkg/api/mapper.go
View file @
55cb45af
...
...
@@ -43,10 +43,10 @@ func NewDefaultRESTMapper(defaultGroupVersions []unversioned.GroupVersion, inter
for
_
,
gv
:=
range
defaultGroupVersions
{
for
kind
,
oType
:=
range
Scheme
.
KnownTypes
(
gv
)
{
gvk
:=
gv
.
WithKind
(
kind
)
// TODO: Remove import path
prefix
check.
// We check the import path
prefix
because we currently stuff both "api" and "extensions" objects
// TODO: Remove import path check.
// We check the import path because we currently stuff both "api" and "extensions" objects
// into the same group within Scheme since Scheme has no notion of groups yet.
if
!
strings
.
HasPrefix
(
oType
.
PkgPath
(),
importPathPrefix
)
||
ignoredKinds
.
Has
(
kind
)
{
if
!
strings
.
Contains
(
oType
.
PkgPath
(),
importPathPrefix
)
||
ignoredKinds
.
Has
(
kind
)
{
continue
}
scope
:=
meta
.
RESTScopeNamespace
...
...
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