kata-monitor: silently ignore CHMOD events on the sandboxes fs

We currently WARN about unexpected fs events, which includes CHMOD
operations (which should be actually expected...).
Just ignore all the fs events we don't care about without any warn.
We dump all the events with debug log in any case.

Signed-off-by: Francesco Giudici <fgiudici@redhat.com>
This commit is contained in:
Francesco Giudici 2022-01-20 15:09:27 +01:00
parent e9eb34cea8
commit e78d80ea0d

View File

@ -113,9 +113,6 @@ func (km *KataMonitor) startPodCacheUpdater() {
"REMOVE event but pod was missing from the sandbox cache")
}
monitorLog.WithField("pod", id).Info("sandbox cache: removed pod")
default:
monitorLog.WithField("event", event).Warn("got unexpected fs event")
}
// While we process fs events directly to update the sandbox cache we need to sync with the