diff --git a/pkg/envoy/yaml/decoder.go b/pkg/envoy/yaml/decoder.go index 8eb0dc3b7..ad9d7aba1 100644 --- a/pkg/envoy/yaml/decoder.go +++ b/pkg/envoy/yaml/decoder.go @@ -6,6 +6,7 @@ import ( "io" "os" "path/filepath" + "strings" "github.com/cortezaproject/corteza-server/pkg/envoy/resource" "gopkg.in/yaml.v3" @@ -36,7 +37,7 @@ func Decoder(l loader) *decoder { // CanDecodeFile func (y *decoder) CanDecodeFile(i os.FileInfo) bool { - switch filepath.Ext(i.Name()) { + switch strings.Trim(filepath.Ext(i.Name()), ".") { case "yaml", "yml": return true }