Fix the volume name with minus sign
This commit is contained in:
@@ -197,6 +197,9 @@ func parseService(name string, s *compose.Service, ret chan interface{}) {
|
|||||||
ret <- cm
|
ret <- cm
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
// rmove minus sign from volume name
|
||||||
|
volname = strings.ReplaceAll(volname, "-", "")
|
||||||
|
|
||||||
pvc := helm.NewPVC(name, volname)
|
pvc := helm.NewPVC(name, volname)
|
||||||
volumes = append(volumes, map[string]interface{}{
|
volumes = append(volumes, map[string]interface{}{
|
||||||
"name": volname,
|
"name": volname,
|
||||||
|
Reference in New Issue
Block a user