Merge pull request #225 from jjhuff/ignore_dotfiles

Ignore files that start with '.' when processing a config dir.
This commit is contained in:
Tim Hockin 2014-06-24 12:26:31 -07:00
commit aa4434c53b

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
}