Fix "/" in configMap names

Fix #2
This commit is contained in:
2022-02-17 11:04:04 +01:00
parent 5d574015ce
commit bf44d442e5

View File

@@ -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