mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Pluginwatcher: log error when walking fs rather than fail
This commit is contained in:
parent
3f5039a2d1
commit
3a467ff44b
@ -175,10 +175,12 @@ func (w *Watcher) init() error {
|
||||
}
|
||||
|
||||
// Walks through the plugin directory discover any existing plugin sockets.
|
||||
// Goroutines started here will be waited for in Stop() before cleaning up.
|
||||
func (w *Watcher) traversePluginDir(dir string) error {
|
||||
return w.fs.Walk(dir, func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("error accessing path: %s error: %v", path, err)
|
||||
glog.Errorf("error accessing path: %s error: %v", path, err)
|
||||
return nil
|
||||
}
|
||||
|
||||
switch mode := info.Mode(); {
|
||||
|
Loading…
Reference in New Issue
Block a user