|
|
@@ -1,6 +1,5 @@
|
|
|
package seecoder.devcloud.core.pipeline.handler;
|
|
|
|
|
|
-import com.fasterxml.jackson.annotation.JsonProperty;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.http.HttpStatus;
|
|
|
import seecoder.devcloud.api.ApplicationProperties;
|
|
|
@@ -17,7 +16,6 @@ import seecoder.devcloud.core.pipeline.Context;
|
|
|
import seecoder.devcloud.core.pipeline.PipelineException;
|
|
|
|
|
|
import java.util.Collections;
|
|
|
-import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author PuHong Weng
|
|
|
@@ -45,25 +43,7 @@ public class K8sDeploymentHandler extends AbstractHandler {
|
|
|
deploymentApi = SpringUtil.getBean(DeploymentApi.class);
|
|
|
}
|
|
|
|
|
|
- private String repoUrl;
|
|
|
-
|
|
|
- private String branchName;
|
|
|
-
|
|
|
- /**
|
|
|
- * 挂载文件配置
|
|
|
- */
|
|
|
- @JsonProperty("mounts")
|
|
|
- private Map<String, String> mounts;
|
|
|
-
|
|
|
- /**
|
|
|
- * key:pvcName
|
|
|
- * value:pvcValue
|
|
|
- */
|
|
|
- @JsonProperty("pvcPaths")
|
|
|
- private Map<String, String> pvcPaths;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ private Integer port;
|
|
|
|
|
|
/**
|
|
|
* 部署一个java项目
|
|
|
@@ -76,7 +56,6 @@ public class K8sDeploymentHandler extends AbstractHandler {
|
|
|
//0. 配置初始化
|
|
|
String imageName = context.getConfigs().get("imageName");
|
|
|
String imageTag = context.getConfigs().get("imageTag");
|
|
|
- int port = Integer.parseInt(context.getConfigs().get("port"));
|
|
|
int replicas = 1;
|
|
|
String namespace = context.getNamespace();
|
|
|
String deployName = context.getDeployName();
|