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
28e1d1af
Commit
28e1d1af
authored
Mar 14, 2016
by
AdoHe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reduce component status probe timeout to 20s for quickly timeout
parent
ddcee7b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
validator.go
pkg/apiserver/validator.go
+1
-1
genericapiserver.go
pkg/genericapiserver/genericapiserver.go
+2
-1
No files found.
pkg/apiserver/validator.go
View file @
28e1d1af
...
@@ -26,7 +26,7 @@ import (
...
@@ -26,7 +26,7 @@ import (
)
)
const
(
const
(
probeTimeOut
=
time
.
Minute
probeTimeOut
=
20
*
time
.
Second
)
)
// TODO: this basic interface is duplicated in N places. consolidate?
// TODO: this basic interface is duplicated in N places. consolidate?
...
...
pkg/genericapiserver/genericapiserver.go
View file @
28e1d1af
...
@@ -58,6 +58,7 @@ import (
...
@@ -58,6 +58,7 @@ import (
const
(
const
(
DefaultEtcdPathPrefix
=
"/registry"
DefaultEtcdPathPrefix
=
"/registry"
globalTimeout
=
time
.
Minute
)
)
// StorageDestinations is a mapping from API group & resource to
// StorageDestinations is a mapping from API group & resource to
...
@@ -662,7 +663,7 @@ func (s *GenericAPIServer) Run(options *ServerRunOptions) {
...
@@ -662,7 +663,7 @@ func (s *GenericAPIServer) Run(options *ServerRunOptions) {
if
longRunningRequestCheck
(
req
)
{
if
longRunningRequestCheck
(
req
)
{
return
nil
,
""
return
nil
,
""
}
}
return
time
.
After
(
time
.
Minute
),
""
return
time
.
After
(
globalTimeout
),
""
}
}
if
secureLocation
!=
""
{
if
secureLocation
!=
""
{
...
...
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