From bf44d442e53180a28f328d1f71d039366e96b428 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Thu, 17 Feb 2022 11:04:04 +0100 Subject: [PATCH] Fix "/" in configMap names Fix #2 --- generator/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/generator/main.go b/generator/main.go index b75b846..21c9faa 100644 --- a/generator/main.go +++ b/generator/main.go @@ -406,6 +406,7 @@ func prepareVolumes(deployment, name string, s *compose.Service, container *helm // the volume is a path and it's explicitally asked to be a configmap in labels cm := buildCMFromPath(volname) volname = strings.Replace(volname, "./", "", 1) + volname = strings.ReplaceAll(volname, "/", "-") volname = strings.ReplaceAll(volname, ".", "-") cm.K8sBase.Metadata.Name = RELEASE_NAME + "-" + volname + "-" + name // build a configmap from the volume path