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
b94e15d6
Commit
b94e15d6
authored
Feb 25, 2016
by
Chao Xu
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21723 from caesarxuchao/log-in-patch
Adding an apiserver log entry when Patch fails because of a meaningful conflict
parents
63feac0a
78fc311f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
resthandler.go
pkg/apiserver/resthandler.go
+1
-0
No files found.
pkg/apiserver/resthandler.go
View file @
b94e15d6
...
@@ -589,6 +589,7 @@ func patchResource(ctx api.Context, admit updateAdmissionFunc, timeout time.Dura
...
@@ -589,6 +589,7 @@ func patchResource(ctx api.Context, admit updateAdmissionFunc, timeout time.Dura
return
nil
,
err
return
nil
,
err
}
}
if
hasConflicts
{
if
hasConflicts
{
glog
.
V
(
4
)
.
Infof
(
"patchResource failed for resource %s, becauase there is a meaningful conflict.
\n
diff1=%v
\n
, diff2=%v
\n
"
,
name
,
diff1
,
diff2
)
return
updateObject
,
updateErr
return
updateObject
,
updateErr
}
}
...
...
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