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
ca2eba70
Unverified
Commit
ca2eba70
authored
Jan 24, 2018
by
Jordan Liggitt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Distinguish service unavailable errors in client-go
parent
35ed5338
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
errors.go
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
+3
-0
No files found.
staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go
View file @
ca2eba70
...
@@ -366,6 +366,9 @@ func NewGenericServerResponse(code int, verb string, qualifiedResource schema.Gr
...
@@ -366,6 +366,9 @@ func NewGenericServerResponse(code int, verb string, qualifiedResource schema.Gr
case
http
.
StatusUnprocessableEntity
:
case
http
.
StatusUnprocessableEntity
:
reason
=
metav1
.
StatusReasonInvalid
reason
=
metav1
.
StatusReasonInvalid
message
=
"the server rejected our request due to an error in our request"
message
=
"the server rejected our request due to an error in our request"
case
http
.
StatusServiceUnavailable
:
reason
=
metav1
.
StatusReasonServiceUnavailable
message
=
"the server is currently unable to handle the request"
case
http
.
StatusGatewayTimeout
:
case
http
.
StatusGatewayTimeout
:
reason
=
metav1
.
StatusReasonTimeout
reason
=
metav1
.
StatusReasonTimeout
message
=
"the server was unable to return a response in the time allotted, but may still be processing the request"
message
=
"the server was unable to return a response in the time allotted, but may still be processing the request"
...
...
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