From 5566fecaedd8c9ef07ad0004799c804d8145349d Mon Sep 17 00:00:00 2001 From: Alec Date: Mon, 10 Jan 2022 17:22:14 +0000 Subject: [PATCH] fix: weird config error where IsDir() doesn't seem to work for k8s --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index 2a5ac97..2da0333 100644 --- a/config.go +++ b/config.go @@ -82,7 +82,7 @@ func (c *Configuration) load(reload ...bool) *Configuration { var rc Configuration for _, resourceConfig := range resourceConfigs { - if !resourceConfig.IsDir() { + if !resourceConfig.IsDir() && resourceConfig.Name() != "..data" { yamlFile, err := ioutil.ReadFile("config/resources/" + resourceConfig.Name()) if err != nil { log.Fatalf("config.load(): %v ", err)