Skip to content

Commit

Permalink
set after genev_sys_6081 started (#3680)
Browse files Browse the repository at this point in the history
Signed-off-by: zcq98 <zhaocongqi_yewu@cmss.chinamobile.com>
  • Loading branch information
zcq98 authored and oilbeater committed Jan 31, 2024
1 parent c16b634 commit ea91898
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/daemon/cniserver.go
Expand Up @@ -34,10 +34,6 @@ func CmdMain() {
config := daemon.ParseFlags()
klog.Infof(versions.String())

if err := initForOS(); err != nil {
util.LogFatalAndExit(err, "failed to do the OS initialization")
}

ovs.UpdateOVSVsctlLimiter(config.OVSVsctlConcurrency)

nicBridgeMappings, err := daemon.InitOVSBridges()
Expand All @@ -61,6 +57,10 @@ func CmdMain() {
util.LogFatalAndExit(err, "failed to initialize node gateway")
}

if err := initForOS(); err != nil {
util.LogFatalAndExit(err, "failed to do the OS initialization")
}

stopCh := signals.SetupSignalHandler().Done()
podInformerFactory := kubeinformers.NewSharedInformerFactoryWithOptions(config.KubeClient, 0,
kubeinformers.WithTweakListOptions(func(listOption *v1.ListOptions) {
Expand Down

0 comments on commit ea91898

Please sign in to comment.