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
fe72bd20
Unverified
Commit
fe72bd20
authored
Sep 13, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68584 from jennybuckley/dry-run-errors
Fix typo in dry-run feature disabled error
parents
6eeff3e6
5253c7f4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
create.go
...ing/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
+1
-1
delete.go
...ing/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go
+2
-2
patch.go
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
+1
-1
update.go
...ing/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go
+1
-1
No files found.
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/create.go
View file @
fe72bd20
...
@@ -47,7 +47,7 @@ func createHandler(r rest.NamedCreater, scope RequestScope, admit admission.Inte
...
@@ -47,7 +47,7 @@ func createHandler(r rest.NamedCreater, scope RequestScope, admit admission.Inte
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
scope
.
err
(
errors
.
NewBadRequest
(
"
dryRun is not supported yet
"
),
w
,
req
)
scope
.
err
(
errors
.
NewBadRequest
(
"
the dryRun alpha feature is disabled
"
),
w
,
req
)
return
return
}
}
...
...
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go
View file @
fe72bd20
...
@@ -47,7 +47,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope RequestSco
...
@@ -47,7 +47,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope RequestSco
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
scope
.
err
(
errors
.
NewBadRequest
(
"
dryRun is not supported yet
"
),
w
,
req
)
scope
.
err
(
errors
.
NewBadRequest
(
"
the dryRun alpha feature is disabled
"
),
w
,
req
)
return
return
}
}
...
@@ -183,7 +183,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope RequestSco
...
@@ -183,7 +183,7 @@ func DeleteResource(r rest.GracefulDeleter, allowsOptions bool, scope RequestSco
func
DeleteCollection
(
r
rest
.
CollectionDeleter
,
checkBody
bool
,
scope
RequestScope
,
admit
admission
.
Interface
)
http
.
HandlerFunc
{
func
DeleteCollection
(
r
rest
.
CollectionDeleter
,
checkBody
bool
,
scope
RequestScope
,
admit
admission
.
Interface
)
http
.
HandlerFunc
{
return
func
(
w
http
.
ResponseWriter
,
req
*
http
.
Request
)
{
return
func
(
w
http
.
ResponseWriter
,
req
*
http
.
Request
)
{
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
scope
.
err
(
errors
.
NewBadRequest
(
"
dryRun is not supported yet
"
),
w
,
req
)
scope
.
err
(
errors
.
NewBadRequest
(
"
the dryRun alpha feature is disabled
"
),
w
,
req
)
return
return
}
}
...
...
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go
View file @
fe72bd20
...
@@ -55,7 +55,7 @@ func PatchResource(r rest.Patcher, scope RequestScope, admit admission.Interface
...
@@ -55,7 +55,7 @@ func PatchResource(r rest.Patcher, scope RequestScope, admit admission.Interface
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
scope
.
err
(
errors
.
NewBadRequest
(
"
dryRun is not supported yet
"
),
w
,
req
)
scope
.
err
(
errors
.
NewBadRequest
(
"
the dryRun alpha feature is disabled
"
),
w
,
req
)
return
return
}
}
...
...
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/update.go
View file @
fe72bd20
...
@@ -49,7 +49,7 @@ func UpdateResource(r rest.Updater, scope RequestScope, admit admission.Interfac
...
@@ -49,7 +49,7 @@ func UpdateResource(r rest.Updater, scope RequestScope, admit admission.Interfac
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
defer
trace
.
LogIfLong
(
500
*
time
.
Millisecond
)
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
if
isDryRun
(
req
.
URL
)
&&
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
DryRun
)
{
scope
.
err
(
errors
.
NewBadRequest
(
"
dryRun is not supported yet
"
),
w
,
req
)
scope
.
err
(
errors
.
NewBadRequest
(
"
the dryRun alpha feature is disabled
"
),
w
,
req
)
return
return
}
}
...
...
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