mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
ignore not found file error when watching manifests
This commit is contained in:
parent
ad9722c453
commit
6d14771fd8
@ -179,7 +179,9 @@ func (s *sourceFile) extractFromDir(name string) ([]*v1.Pod, error) {
|
||||
case statInfo.Mode().IsRegular():
|
||||
pod, err := s.extractFromFile(path)
|
||||
if err != nil {
|
||||
glog.Errorf("Can't process manifest file %q: %v", path, err)
|
||||
if !os.IsNotExist(err) {
|
||||
glog.Errorf("Can't process manifest file %q: %v", path, err)
|
||||
}
|
||||
} else {
|
||||
pods = append(pods, pod)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user