open-hand / choerodon-starters

This is the toolkit developed by Choerodon and provides some basic dependencies for use in the development process.
http://choerodon.io
Apache License 2.0
78 stars 64 forks source link

1.修正了缺少的代码. #21

Closed donbing007 closed 5 years ago

donbing007 commented 5 years ago

github中的0.7.1和 maven 仓库中的0.7.1代码不一致.

public class PipeRequest {
    private String podName;
    private String containerName;
    private String pipeID;
    private String namespace; // 这行在 github 中不存在,但是实际需要使用的.
}
private PipeRequest extractLogRequest(Map<String,Object> paras){
        String podName = (String) paras.get("podName");
        String containerName = (String) paras.get("containerName");
        String logId = (String) paras.get("logId");
        String namespace = (String) paras.get("env"); // 同上
        if(podName != null && containerName != null && logId !=null){
            return new PipeRequest(podName,containerName,logId, namespace);
        }else {
            return null;
        }
    }