diff --git a/pkg/ocicni/ocicni.go b/pkg/ocicni/ocicni.go index 3b2ed8be..0a0e1740 100644 --- a/pkg/ocicni/ocicni.go +++ b/pkg/ocicni/ocicni.go @@ -48,7 +48,8 @@ func (plugin *cniNetworkPlugin) monitorNetDir() { select { case event := <-watcher.Events: logrus.Debugf("CNI monitoring event %v", event) - if event.Op&fsnotify.Create != fsnotify.Create { + if event.Op&fsnotify.Create != fsnotify.Create && + event.Op&fsnotify.Write != fsnotify.Write { continue }