Commit 2a8be2cb authored by 黎博's avatar 黎博

fix bug

parent 33e5407a
......@@ -161,8 +161,6 @@ public class K8sController {
if (serviceCreateVo.getDebug() == null) {
serviceCreateVo.setDebug(0);
}
// 创建或替换Service
tkeService.createServiceByYaml(serviceCreateVo);
// 如果原来服务已存在,则按照原debug和mock的值,设置serviceCreateVo
if (tkeService.checkDeploymentExistence(namespace, serviceName)) {
......@@ -181,6 +179,8 @@ public class K8sController {
}
}
}
// 创建或替换Service
tkeService.createServiceByYaml(serviceCreateVo);
// 创建或替换Deployment
tkeService.createDeploymentByYaml(serviceCreateVo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment