From d360524803552d1e90d9371cf6a4047452c739f6 Mon Sep 17 00:00:00 2001 From: miaojiuchen Date: Mon, 21 Oct 2019 18:00:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3k8s=20configmap=E7=94=9F?= =?UTF-8?q?=E6=88=90=E7=9A=84=20..data=20=E8=BD=AF=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=A2=AB=E8=AF=86=E5=88=AB=E6=88=90=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/conf/paladin/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/conf/paladin/file.go b/pkg/conf/paladin/file.go index 0995cf227..100a718c3 100644 --- a/pkg/conf/paladin/file.go +++ b/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) } for _, file := range files { - if !file.IsDir() { + if !file.IsDir() && (file.Mode()&os.ModeSymlink) != os.ModeSymlink { paths = append(paths, path.Join(base, file.Name())) } }