解决k8s configmap生成的 ..data 软链接目录被识别成文件的问题

pull/392/head
miaojiuchen 5 years ago
parent 23e30443ce
commit d360524803
  1. 2
      pkg/conf/paladin/file.go

@ -167,7 +167,7 @@ func loadValues(base string) (map[string]*Value, error) {
return nil, fmt.Errorf("paladin: read dir %s error: %s", base, err) return nil, fmt.Errorf("paladin: read dir %s error: %s", base, err)
} }
for _, file := range files { for _, file := range files {
if !file.IsDir() { if !file.IsDir() && (file.Mode()&os.ModeSymlink) != os.ModeSymlink {
paths = append(paths, path.Join(base, file.Name())) paths = append(paths, path.Join(base, file.Name()))
} }
} }

Loading…
Cancel
Save