From 47531adb60356d00fd5a0fb34cda745262897702 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Fri, 14 Feb 2020 22:57:05 +0100 Subject: [PATCH] clustermesh: Ignore ..data directory of secrets mount Skip any directory present in the config directory to avoid warnings like these: ``` level=warning msg="Unable to establish etcd connection to remote cluser" clusterName=..data config=/var/lib/cilium/clustermesh/..data error="read /var/lib/cilium/clustermesh/..data: is a directory" kvstoreErr="" kvstoreStatus= subsys=clustermesh ``` Fixes: #6408 Signed-off-by: Thomas Graf --- pkg/clustermesh/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/clustermesh/config.go b/pkg/clustermesh/config.go index 104a902464b8..c7dc86d83cbd 100644 --- a/pkg/clustermesh/config.go +++ b/pkg/clustermesh/config.go @@ -80,7 +80,7 @@ func (cdw *configDirectoryWatcher) watch() error { // lrwxrwxrwx. 1 root root 12 Jul 21 16:32 test7 -> ..data/test7 // // Ignore all backing files and only read the symlinks - if strings.HasPrefix(f.Name(), "..") { + if strings.HasPrefix(f.Name(), "..") || f.IsDir() { continue }