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
7e1089bb
Unverified
Commit
7e1089bb
authored
Apr 23, 2016
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Storage, not Storgage
parent
f5e1e9a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
resource_encoding_config.go
pkg/genericapiserver/resource_encoding_config.go
+2
-2
storage_factory.go
pkg/genericapiserver/storage_factory.go
+1
-1
No files found.
pkg/genericapiserver/resource_encoding_config.go
View file @
7e1089bb
...
...
@@ -26,7 +26,7 @@ type ResourceEncodingConfig interface {
// StorageEncoding returns the serialization format for the resource.
// TODO this should actually return a GroupVersionKind since you can logically have multiple "matching" Kinds
// For now, it returns just the GroupVersion for consistency with old behavior
Storag
ag
eEncodingFor
(
unversioned
.
GroupResource
)
(
unversioned
.
GroupVersion
,
error
)
StorageEncodingFor
(
unversioned
.
GroupResource
)
(
unversioned
.
GroupVersion
,
error
)
// InMemoryEncodingFor returns the groupVersion for the in memory representation the storage should convert to.
InMemoryEncodingFor
(
unversioned
.
GroupResource
)
(
unversioned
.
GroupVersion
,
error
)
...
...
@@ -78,7 +78,7 @@ func (o *DefaultResourceEncodingConfig) SetResourceEncoding(resourceBeingStored
o
.
Groups
[
group
]
.
InternalResourceEncodings
[
resourceBeingStored
.
Resource
]
=
internalVersion
}
func
(
o
*
DefaultResourceEncodingConfig
)
Storag
ag
eEncodingFor
(
resource
unversioned
.
GroupResource
)
(
unversioned
.
GroupVersion
,
error
)
{
func
(
o
*
DefaultResourceEncodingConfig
)
StorageEncodingFor
(
resource
unversioned
.
GroupResource
)
(
unversioned
.
GroupVersion
,
error
)
{
groupMeta
,
err
:=
registered
.
Group
(
resource
.
Group
)
if
err
!=
nil
{
return
unversioned
.
GroupVersion
{},
err
...
...
pkg/genericapiserver/storage_factory.go
View file @
7e1089bb
...
...
@@ -174,7 +174,7 @@ func (s *DefaultStorageFactory) New(groupResource unversioned.GroupResource) (st
config
.
ServerList
=
overriddenEtcdLocations
}
storageEncodingVersion
,
err
:=
s
.
ResourceEncodingConfig
.
Storag
ag
eEncodingFor
(
chosenStorageResource
)
storageEncodingVersion
,
err
:=
s
.
ResourceEncodingConfig
.
StorageEncodingFor
(
chosenStorageResource
)
if
err
!=
nil
{
return
nil
,
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