|
|
|
@@ -512,8 +512,8 @@ public class K8sClientUtil { |
|
|
|
if (StringUtils.isNotEmpty(modelPath)) { |
|
|
|
volumeMounts.add(new V1VolumeMount().name("data").mountPath("/opt/model").subPath(modelPath).readOnly(true)); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(modelPath)) { |
|
|
|
volumeMounts.add(new V1VolumeMount().name("data").mountPath("/opt/code").subPath(modelPath).readOnly(true)); |
|
|
|
if (StringUtils.isNotEmpty(codePath)) { |
|
|
|
volumeMounts.add(new V1VolumeMount().name("data").mountPath("/opt/code").subPath(codePath).readOnly(true)); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(datasetPath) || StringUtils.isNotEmpty(modelPath) || StringUtils.isNotEmpty(codePath)) { |
|
|
|
volumes.add(new V1Volume().name("data").hostPath(new V1HostPathVolumeSource().path(hostPath).type("DirectoryOrCreate"))); |
|
|
|
|