Browse Source

bug fix

tags/v0.3.0
之江实验室 3 years ago
parent
commit
f7388783fc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      distribute-train-operator/src/main/java/org/onebrain/operator/action/deployer/impl/BaseStatefulSetDeployer.java

+ 1
- 1
distribute-train-operator/src/main/java/org/onebrain/operator/action/deployer/impl/BaseStatefulSetDeployer.java View File

@@ -190,7 +190,7 @@ public class BaseStatefulSetDeployer implements StatefulSetDeployer<ChildResourc
* @return 存储卷集合
*/
private List<Volume> buildVolumes(ChildResourceCreateInfo info) {
List<Volume> volumes = buildVolumes(info);
List<Volume> 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));


Loading…
Cancel
Save