ignore not found file error when watching manifests

pull/8/head
Di Xu 2018-06-07 22:02:53 +08:00
parent ad9722c453
commit 6d14771fd8
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}