Avoid "not mapped" volumes

fix #5
This commit is contained in:
2022-04-01 08:18:45 +02:00
parent 6cd1af015b
commit 6ea3a923cc

View File

@@ -380,6 +380,10 @@ func prepareVolumes(deployment, name string, s *compose.Service, container *helm
}
for _, volume := range s.Volumes {
parts := strings.Split(volume, ":")
if len(parts) == 1 {
// this is a volume declaration for Docker only, avoid it
continue
}
volname := parts[0]
volepath := parts[1]