Skip to content

Commit

Permalink
initialize ipsets on cni server startup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Aug 30, 2021
1 parent cf32ab1 commit 1824170
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/daemon/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,11 @@ func (c *Controller) Run(stopCh <-chan struct{}) {
return
}

if err := c.setIPSet(); err != nil {
klog.Errorf("failed to set ipsets: %v", err)
return
}

klog.Info("Started workers")
go wait.Until(c.loopOvn0Check, 5*time.Second, stopCh)
go wait.Until(c.runAddOrUpdateProviderNetworkWorker, time.Second, stopCh)
Expand Down

0 comments on commit 1824170

Please sign in to comment.