Ignore files that start with '.' when processing a config dir.

This commit is contained in:
Justin Huff 2014-06-24 12:02:18 -07:00
parent 568631e765
commit 4f714dd0fe

View File

@ -407,7 +407,7 @@ func (kl *Kubelet) extractFromFile(name string) (api.ContainerManifest, error) {
func (kl *Kubelet) extractFromDir(name string) ([]api.ContainerManifest, error) {
var manifests []api.ContainerManifest
files, err := filepath.Glob(filepath.Join(name, "*"))
files, err := filepath.Glob(filepath.Join(name, "[^.]*"))
if err != nil {
return manifests, err
}