mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-14 14:23:37 +00:00
Ignore files that start with '.' when processing a config dir.
This commit is contained in:
parent
568631e765
commit
4f714dd0fe
@ -407,7 +407,7 @@ func (kl *Kubelet) extractFromFile(name string) (api.ContainerManifest, error) {
|
|||||||
func (kl *Kubelet) extractFromDir(name string) ([]api.ContainerManifest, error) {
|
func (kl *Kubelet) extractFromDir(name string) ([]api.ContainerManifest, error) {
|
||||||
var manifests []api.ContainerManifest
|
var manifests []api.ContainerManifest
|
||||||
|
|
||||||
files, err := filepath.Glob(filepath.Join(name, "*"))
|
files, err := filepath.Glob(filepath.Join(name, "[^.]*"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return manifests, err
|
return manifests, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user