From 6ea3a923cc2579b1f836bcc0e781f22cc97471bf Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Fri, 1 Apr 2022 08:18:45 +0200 Subject: [PATCH] Avoid "not mapped" volumes fix #5 --- generator/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/generator/main.go b/generator/main.go index d864457..4793fa0 100644 --- a/generator/main.go +++ b/generator/main.go @@ -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]