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
ac94fcbf
Commit
ac94fcbf
authored
Mar 13, 2018
by
Satyadeep Musuvathy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Issue #61123, call syncer.Update on add event.
parent
0f07ce2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
controller.go
pkg/controller/nodeipam/ipam/controller.go
+3
-2
No files found.
pkg/controller/nodeipam/ipam/controller.go
View file @
ac94fcbf
...
@@ -174,14 +174,15 @@ func (c *Controller) onAdd(node *v1.Node) error {
...
@@ -174,14 +174,15 @@ func (c *Controller) onAdd(node *v1.Node) error {
c
.
lock
.
Lock
()
c
.
lock
.
Lock
()
defer
c
.
lock
.
Unlock
()
defer
c
.
lock
.
Unlock
()
if
syncer
,
ok
:=
c
.
syncers
[
node
.
Name
];
!
ok
{
syncer
,
ok
:=
c
.
syncers
[
node
.
Name
]
if
!
ok
{
syncer
=
c
.
newSyncer
(
node
.
Name
)
syncer
=
c
.
newSyncer
(
node
.
Name
)
c
.
syncers
[
node
.
Name
]
=
syncer
c
.
syncers
[
node
.
Name
]
=
syncer
go
syncer
.
Loop
(
nil
)
go
syncer
.
Loop
(
nil
)
}
else
{
}
else
{
glog
.
Warningf
(
"Add for node %q that already exists"
,
node
.
Name
)
glog
.
Warningf
(
"Add for node %q that already exists"
,
node
.
Name
)
syncer
.
Update
(
node
)
}
}
syncer
.
Update
(
node
)
return
nil
return
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