fix: show platform infra pod readiness details
This commit is contained in:
@@ -556,9 +556,30 @@ def pod_summary(item):
|
||||
"restartCount": cs.get("restartCount"),
|
||||
"image": cs.get("image"),
|
||||
"state": list((cs.get("state") or {}).keys()),
|
||||
"stateDetail": cs.get("state") or {},
|
||||
}
|
||||
for cs in container_statuses
|
||||
],
|
||||
"initContainers": [
|
||||
{
|
||||
"name": cs.get("name"),
|
||||
"ready": cs.get("ready"),
|
||||
"restartCount": cs.get("restartCount"),
|
||||
"image": cs.get("image"),
|
||||
"state": list((cs.get("state") or {}).keys()),
|
||||
"stateDetail": cs.get("state") or {},
|
||||
}
|
||||
for cs in (status.get("initContainerStatuses") or [])
|
||||
],
|
||||
"conditions": [
|
||||
{
|
||||
"type": condition.get("type"),
|
||||
"status": condition.get("status"),
|
||||
"reason": condition.get("reason"),
|
||||
"message": condition.get("message"),
|
||||
}
|
||||
for condition in status.get("conditions", [])
|
||||
],
|
||||
}
|
||||
|
||||
def service_summary(item):
|
||||
|
||||
Reference in New Issue
Block a user