From 5d574015cee4997ed90abb92bcea8b64042d2016 Mon Sep 17 00:00:00 2001 From: Patrice Ferlet Date: Thu, 17 Feb 2022 10:43:07 +0100 Subject: [PATCH] Fix the missed volume mount for empty dirs Fix #1 --- generator/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generator/main.go b/generator/main.go index 63f27e2..b75b846 100644 --- a/generator/main.go +++ b/generator/main.go @@ -432,6 +432,11 @@ func prepareVolumes(deployment, name string, s *compose.Service, container *helm "name": volname, "emptyDir": map[string]string{}, }) + mountPoints = append(mountPoints, map[string]interface{}{ + "name": volname, + "mountPath": volepath, + }) + container.VolumeMounts = mountPoints isEmptyDir = true break }