view pods statuses
This commit is contained in:
parent
7df35976e4
commit
3388a72304
@ -809,7 +809,11 @@ class K8sTool:
|
||||
console.print("[yellow]No pods found[/yellow]")
|
||||
return
|
||||
|
||||
pod_names = [f"{pod['name']} (Status: {pod['status']}, Age: {pod['age']})" for pod in pods]
|
||||
# Display pods table with all information
|
||||
self.k8s_client.display_pods_table(pods)
|
||||
|
||||
# Simple list of pod names for selection
|
||||
pod_names = [pod['name'] for pod in pods]
|
||||
selected = questionary.select(
|
||||
"Select pod:",
|
||||
choices=pod_names,
|
||||
@ -819,7 +823,7 @@ class K8sTool:
|
||||
if not selected:
|
||||
return
|
||||
|
||||
pod_name = selected.split(" (Status:")[0]
|
||||
pod_name = selected
|
||||
|
||||
# Check if pod has multiple containers
|
||||
containers = self.k8s_client.get_pod_containers(self.current_namespace, pod_name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user