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
02a7e92b
Commit
02a7e92b
authored
Nov 27, 2017
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Requeue failed updates for retry in CIDR allocator
parent
4b5ca131
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
cloud_cidr_allocator.go
pkg/controller/node/ipam/cloud_cidr_allocator.go
+4
-1
range_allocator.go
pkg/controller/node/ipam/range_allocator.go
+4
-1
No files found.
pkg/controller/node/ipam/cloud_cidr_allocator.go
View file @
02a7e92b
...
@@ -146,7 +146,10 @@ func (ca *cloudCIDRAllocator) worker(stopChan <-chan struct{}) {
...
@@ -146,7 +146,10 @@ func (ca *cloudCIDRAllocator) worker(stopChan <-chan struct{}) {
glog
.
Warning
(
"Channel nodeCIDRUpdateChannel was unexpectedly closed"
)
glog
.
Warning
(
"Channel nodeCIDRUpdateChannel was unexpectedly closed"
)
return
return
}
}
ca
.
updateCIDRAllocation
(
workItem
)
if
err
:=
ca
.
updateCIDRAllocation
(
workItem
);
err
!=
nil
{
// Requeue the failed node for update again.
ca
.
nodeUpdateChannel
<-
workItem
}
case
<-
stopChan
:
case
<-
stopChan
:
return
return
}
}
...
...
pkg/controller/node/ipam/range_allocator.go
View file @
02a7e92b
...
@@ -176,7 +176,10 @@ func (r *rangeAllocator) worker(stopChan <-chan struct{}) {
...
@@ -176,7 +176,10 @@ func (r *rangeAllocator) worker(stopChan <-chan struct{}) {
glog
.
Warning
(
"Channel nodeCIDRUpdateChannel was unexpectedly closed"
)
glog
.
Warning
(
"Channel nodeCIDRUpdateChannel was unexpectedly closed"
)
return
return
}
}
r
.
updateCIDRAllocation
(
workItem
)
if
err
:=
r
.
updateCIDRAllocation
(
workItem
);
err
!=
nil
{
// Requeue the failed node for update again.
r
.
nodeCIDRUpdateChannel
<-
workItem
}
case
<-
stopChan
:
case
<-
stopChan
:
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