From f7388783fc15aae8c9e4f3bcd5a035735d14bcf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=8B=E6=B1=9F=E5=AE=9E=E9=AA=8C=E5=AE=A4?= Date: Fri, 30 Oct 2020 17:57:21 +0800 Subject: [PATCH] bug fix --- .../operator/action/deployer/impl/BaseStatefulSetDeployer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribute-train-operator/src/main/java/org/onebrain/operator/action/deployer/impl/BaseStatefulSetDeployer.java b/distribute-train-operator/src/main/java/org/onebrain/operator/action/deployer/impl/BaseStatefulSetDeployer.java index 1d11251..c51e43a 100644 --- a/distribute-train-operator/src/main/java/org/onebrain/operator/action/deployer/impl/BaseStatefulSetDeployer.java +++ b/distribute-train-operator/src/main/java/org/onebrain/operator/action/deployer/impl/BaseStatefulSetDeployer.java @@ -190,7 +190,7 @@ public class BaseStatefulSetDeployer implements StatefulSetDeployer buildVolumes(ChildResourceCreateInfo info) { - List volumes = buildVolumes(info); + List volumes = new LinkedList<>(); Optional.ofNullable(info.getWorkspaceVolume()).ifPresent(v-> volumes.add(v)); Optional.ofNullable(info.getDatasetVolume()).ifPresent(v-> volumes.add(v)); Optional.ofNullable(info.getModelVolume()).ifPresent(v-> volumes.add(v));