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)