mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-10 00:29:01 +02:00
解决k8s configmap生成的 ..data 软链接目录被识别成文件的问题
This commit is contained in:
parent
23e30443ce
commit
d360524803
@ -167,7 +167,7 @@ func loadValues(base string) (map[string]*Value, error) {
|
||||
return nil, fmt.Errorf("paladin: read dir %s error: %s", base, err)
|
||||
}
|
||||
for _, file := range files {
|
||||
if !file.IsDir() {
|
||||
if !file.IsDir() && (file.Mode()&os.ModeSymlink) != os.ModeSymlink {
|
||||
paths = append(paths, path.Join(base, file.Name()))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user