From f042fa52ba1783adbc7304082e28f274ad0c04c5 Mon Sep 17 00:00:00 2001 From: chenzhihang <709011834@qq.com> Date: Fri, 18 Apr 2025 16:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8F=96=E6=B6=88=E4=BB=A3?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/platform/service/impl/ImageServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ImageServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ImageServiceImpl.java index f56d78cc..fb7f66f5 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ImageServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ImageServiceImpl.java @@ -88,8 +88,6 @@ public class ImageServiceImpl implements ImageService { private String image; @Value("${dockerpush.mountPath}") private String mountPath; - @Value("${dockerpush.proxyUrl}") - private String proxyUrl; @Value("${jupyter.namespace}") private String namespace; @@ -324,7 +322,7 @@ public class ImageServiceImpl implements ImageService { V1Pod pod = k8sClientUtil.getNSPodList(serviceNS, deploymentName); if (pod == null) { String podName = deploymentName + "-" + DateUtils.formatYMD10(new Date()); - pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, proxyUrl, mountPath, image); + pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, mountPath, image); } String loginCmd = "docker login -u " + harborUser + " -p " + harborpassword + " " + harborUrl; // 执行命令 docker login -u admin -p Harbor12345 172.20.32.187 @@ -367,7 +365,7 @@ public class ImageServiceImpl implements ImageService { V1Pod pod = k8sClientUtil.getNSPodList(serviceNS, deploymentName); if (pod == null) { String podName = deploymentName + "-" + DateUtils.formatYMD10(new Date()); - pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, proxyUrl, mountPath, image); + pod = k8sClientUtil.createPodWithEnv(podName, serviceNS, mountPath, image); } String loginCmd = "docker login -u " + harborUser + " -p " + harborpassword + " " + harborUrl; // 执行命令 docker login -u admin -p Harbor12345 172.20.32.187