From 8d0ab2ad0c722a556b2be932415a8ea28c25f832 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 10 Jun 2022 13:42:30 +0200 Subject: [PATCH] Use dot, not "minus" for "kind" of file names --- generator/writer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/writer.go b/generator/writer.go index ce334d1..7542c94 100644 --- a/generator/writer.go +++ b/generator/writer.go @@ -174,7 +174,7 @@ func Generate(p *compose.Parser, katernayVersion, appName, appVersion, chartVers case *helm.ConfigMap, *helm.Secret: // there could be several files, so let's force the filename - name := c.(helm.Named).Name() + "-" + c.GetType() + name := c.(helm.Named).Name() + "." + c.GetType() suffix := c.GetPathRessource() suffix = tools.PathToName(suffix) name += suffix @@ -182,7 +182,7 @@ func Generate(p *compose.Parser, katernayVersion, appName, appVersion, chartVers writers.BuildConfigMap(c, kind, n, name, templatesDir) default: - name := c.(helm.Named).Name() + "-" + c.GetType() + name := c.(helm.Named).Name() + "." + c.GetType() name = PrefixRE.ReplaceAllString(name, "") fname := filepath.Join(templatesDir, name+".yaml") fp, err := os.Create(fname)