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
d7c914ba
Commit
d7c914ba
authored
Jan 09, 2017
by
shiywang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused parameter
parent
de59ede6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
rest.go
pkg/genericapiserver/api/handlers/rest.go
+1
-1
installer.go
pkg/genericapiserver/api/installer.go
+1
-1
No files found.
pkg/genericapiserver/api/handlers/rest.go
View file @
d7c914ba
...
@@ -451,7 +451,7 @@ func (c *namedCreaterAdapter) Create(ctx request.Context, name string, obj runti
...
@@ -451,7 +451,7 @@ func (c *namedCreaterAdapter) Create(ctx request.Context, name string, obj runti
// PatchResource returns a function that will handle a resource patch
// PatchResource returns a function that will handle a resource patch
// TODO: Eventually PatchResource should just use GuaranteedUpdate and this routine should be a bit cleaner
// TODO: Eventually PatchResource should just use GuaranteedUpdate and this routine should be a bit cleaner
func
PatchResource
(
r
rest
.
Patcher
,
scope
RequestScope
,
typer
runtime
.
ObjectTyper
,
admit
admission
.
Interface
,
converter
runtime
.
ObjectConvertor
)
restful
.
RouteFunction
{
func
PatchResource
(
r
rest
.
Patcher
,
scope
RequestScope
,
admit
admission
.
Interface
,
converter
runtime
.
ObjectConvertor
)
restful
.
RouteFunction
{
return
func
(
req
*
restful
.
Request
,
res
*
restful
.
Response
)
{
return
func
(
req
*
restful
.
Request
,
res
*
restful
.
Response
)
{
w
:=
res
.
ResponseWriter
w
:=
res
.
ResponseWriter
...
...
pkg/genericapiserver/api/installer.go
View file @
d7c914ba
...
@@ -634,7 +634,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
...
@@ -634,7 +634,7 @@ func (a *APIInstaller) registerResourceHandlers(path string, storage rest.Storag
if
hasSubresource
{
if
hasSubresource
{
doc
=
"partially update "
+
subresource
+
" of the specified "
+
kind
doc
=
"partially update "
+
subresource
+
" of the specified "
+
kind
}
}
handler
:=
metrics
.
InstrumentRouteFunc
(
action
.
Verb
,
resource
,
handlers
.
PatchResource
(
patcher
,
reqScope
,
a
.
group
.
Typer
,
a
dmit
,
mapping
.
ObjectConvertor
))
handler
:=
metrics
.
InstrumentRouteFunc
(
action
.
Verb
,
resource
,
handlers
.
PatchResource
(
patcher
,
reqScope
,
admit
,
mapping
.
ObjectConvertor
))
route
:=
ws
.
PATCH
(
action
.
Path
)
.
To
(
handler
)
.
route
:=
ws
.
PATCH
(
action
.
Path
)
.
To
(
handler
)
.
Doc
(
doc
)
.
Doc
(
doc
)
.
Param
(
ws
.
QueryParameter
(
"pretty"
,
"If 'true', then the output is pretty printed."
))
.
Param
(
ws
.
QueryParameter
(
"pretty"
,
"If 'true', then the output is pretty printed."
))
.
...
...
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