mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 10:19:50 +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():
|
case statInfo.Mode().IsRegular():
|
||||||
pod, err := s.extractFromFile(path)
|
pod, err := s.extractFromFile(path)
|
||||||
if err != nil {
|
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 {
|
} else {
|
||||||
pods = append(pods, pod)
|
pods = append(pods, pod)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user