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
37418afe
Commit
37418afe
authored
Aug 05, 2015
by
Alex Mohr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix kubectl updateWithRetries to have 1 minute timeout instead of 500 ms
Fixes #12258
parent
9610b8fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
rolling_updater.go
pkg/kubectl/rolling_updater.go
+1
-2
No files found.
pkg/kubectl/rolling_updater.go
View file @
37418afe
...
...
@@ -312,10 +312,9 @@ type updateFunc func(controller *api.ReplicationController)
// updateWithRetries updates applies the given rc as an update.
func
updateWithRetries
(
rcClient
client
.
ReplicationControllerInterface
,
rc
*
api
.
ReplicationController
,
applyUpdate
updateFunc
)
(
*
api
.
ReplicationController
,
error
)
{
// Each update could take ~100ms, so give it 0.5 second
var
err
error
oldRc
:=
rc
err
=
wait
.
Poll
(
10
*
time
.
Millisecond
,
500
*
time
.
Millisecond
,
func
()
(
bool
,
error
)
{
err
=
wait
.
Poll
(
10
*
time
.
Millisecond
,
1
*
time
.
Minute
,
func
()
(
bool
,
error
)
{
// Apply the update, then attempt to push it to the apiserver.
applyUpdate
(
rc
)
if
rc
,
err
=
rcClient
.
Update
(
rc
);
err
==
nil
{
...
...
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