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
9536561e
Commit
9536561e
authored
Apr 20, 2019
by
aaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Using var() block to define variables
parent
40f691a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
scheme.go
pkg/api/legacyscheme/scheme.go
+14
-12
No files found.
pkg/api/legacyscheme/scheme.go
View file @
9536561e
...
...
@@ -21,15 +21,17 @@ import (
"k8s.io/apimachinery/pkg/runtime/serializer"
)
// Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered.
// NOTE: If you are copying this file to start a new api group, STOP! Copy the
// extensions group instead. This Scheme is special and should appear ONLY in
// the api group, unless you really know what you're doing.
// TODO(lavalamp): make the above error impossible.
var
Scheme
=
runtime
.
NewScheme
()
// Codecs provides access to encoding and decoding for the scheme
var
Codecs
=
serializer
.
NewCodecFactory
(
Scheme
)
// ParameterCodec handles versioning of objects that are converted to query parameters.
var
ParameterCodec
=
runtime
.
NewParameterCodec
(
Scheme
)
var
(
// Scheme is the default instance of runtime.Scheme to which types in the Kubernetes API are already registered.
// NOTE: If you are copying this file to start a new api group, STOP! Copy the
// extensions group instead. This Scheme is special and should appear ONLY in
// the api group, unless you really know what you're doing.
// TODO(lavalamp): make the above error impossible.
Scheme
=
runtime
.
NewScheme
()
// Codecs provides access to encoding and decoding for the scheme
Codecs
=
serializer
.
NewCodecFactory
(
Scheme
)
// ParameterCodec handles versioning of objects that are converted to query parameters.
ParameterCodec
=
runtime
.
NewParameterCodec
(
Scheme
)
)
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