From 3388a72304077222827b98b6b29ae30de4a86112 Mon Sep 17 00:00:00 2001 From: "vy.boyko" Date: Mon, 27 Oct 2025 02:02:40 +0300 Subject: [PATCH] view pods statuses --- k8s_tool/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/k8s_tool/main.py b/k8s_tool/main.py index bb7a376..4e7bf63 100644 --- a/k8s_tool/main.py +++ b/k8s_tool/main.py @@ -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)