mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #225 from jjhuff/ignore_dotfiles
Ignore files that start with '.' when processing a config dir.
This commit is contained in:
commit
aa4434c53b
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user