Commit 97286c99 authored by 黎博's avatar 黎博

获取pod列表接口新增serviceType

parent ae9fb3b2
...@@ -178,6 +178,7 @@ public class K8sService { ...@@ -178,6 +178,7 @@ public class K8sService {
map.put("createdAt", podMetadata.getCreationTimestamp()); map.put("createdAt", podMetadata.getCreationTimestamp());
} }
map.put("serviceName", serviceName); map.put("serviceName", serviceName);
map.put("serviceType", service.getSpec().getType());
map.put("podName", podMetadata.getName()); map.put("podName", podMetadata.getName());
map.put("labels", podMetadata.getLabels()); map.put("labels", podMetadata.getLabels());
List<ContainerStatus> containerStatuses = pod.getStatus().getContainerStatuses(); List<ContainerStatus> containerStatuses = pod.getStatus().getContainerStatuses();
......
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