use of com.baidu.hugegraph.computer.k8s.crd.model.ComputerJobStatusBuilder in project hugegraph-computer by hugegraph.
the class ComputerJobController method fillCRStatus.
private void fillCRStatus(HugeGraphComputerJob computerJob) {
ComputerJobStatus status = computerJob.getStatus() == null ? new ComputerJobStatus() : computerJob.getStatus();
status = new ComputerJobStatusBuilder(status).editOrNewComponentStates().endComponentStates().editOrNewJobState().endJobState().build();
computerJob.setStatus(status);
}
Aggregations