From facf277f5f64a828f1fb090cf2ca7e56daa28066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=AF=E8=88=AA?= <101104760+ZhangSetSail@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:49:45 +0800 Subject: [PATCH] fix: create share volume MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张启航 <101104760+ZhangSetSail@users.noreply.github.com> --- worker/appm/volume/volume.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/appm/volume/volume.go b/worker/appm/volume/volume.go index 5dab77e58..5aada785e 100644 --- a/worker/appm/volume/volume.go +++ b/worker/appm/volume/volume.go @@ -86,8 +86,9 @@ func NewVolumeManager(as *v1.AppService, logrus.Warnf("other volume type[%s]", volumeType) if serviceMountR != nil { v = new(ShareFileVolume) + } else { + v = new(OtherVolume) } - v = new(OtherVolume) } v.setBaseInfo(as, serviceVolume, serviceMountR, version, dbmanager) return v