Commit 0e153e8e authored by 黎博's avatar 黎博

tiaoshi

parent 1a4747ef
......@@ -378,9 +378,16 @@ public class K8sService {
log.info("时间转换异常!");
podMap.put("createdAt", pod.getStatus().getStartTime());
}
if (pod.getStatus().getContainerStatuses().size() > 0) {
podMap.put("image", pod.getStatus().getContainerStatuses().get(0).getImage());
podMap.put("imageId", pod.getStatus().getContainerStatuses().get(0).getImageID());
} else {
podMap.put("image", null);
podMap.put("imageId", null);
}
if (pod.getMetadata().getLabels() != null) {
podMap.put("labels", pod.getMetadata().getLabels());
}
return podMap;
}
......
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