|
|
|
@@ -90,7 +90,7 @@ public class JupyterServiceImpl implements JupyterService { |
|
|
|
|
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
//手动构造pod名称 |
|
|
|
String podName = loginUser.getUsername().toLowerCase() + "-" + devEnvironment.getName() +"-editor-pod" + "-" + id; |
|
|
|
String podName = loginUser.getUsername().toLowerCase() +"-editor-pod" + "-" + id; |
|
|
|
String pvcName = loginUser.getUsername().toLowerCase() + "-editor-pvc"; |
|
|
|
V1PersistentVolumeClaim pvc = k8sClientUtil.createPvc(namespace, pvcName, storage, storageClassName); |
|
|
|
|
|
|
|
@@ -113,7 +113,7 @@ public class JupyterServiceImpl implements JupyterService { |
|
|
|
|
|
|
|
LoginUser loginUser = SecurityUtils.getLoginUser(); |
|
|
|
//手动构造pod名称 |
|
|
|
String podName = loginUser.getUsername().toLowerCase() + "-" + devEnvironment.getName() +"-editor-pod" + "-" + id; |
|
|
|
String podName = loginUser.getUsername().toLowerCase() +"-editor-pod" + "-" + id; |
|
|
|
//得到pod |
|
|
|
V1Pod pod = k8sClientUtil.getNSPodList(namespace, podName); |
|
|
|
if(pod == null){ |
|
|
|
|