kdebug 0.6.3__tar.gz → 0.6.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kdebug
3
- Version: 0.6.3
3
+ Version: 0.6.5
4
4
  Summary: TUI for Kubernetes Debug Containers
5
5
  Project-URL: Homepage, https://github.com/jessegoodier/kdebug
6
6
  Project-URL: Repository, https://github.com/jessegoodier/kdebug
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kdebug"
7
- version = "0.6.3"
7
+ version = "0.6.5"
8
8
  description = "TUI for Kubernetes Debug Containers"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -178,7 +178,7 @@ def validate_cluster_connection(namespace: str) -> Optional[str]:
178
178
 
179
179
  Returns None on success, or an error message string on failure.
180
180
  """
181
- cmd = f"{kubectl_base_cmd()} get pods -n {namespace} --limit=1 -o name"
181
+ cmd = f"{kubectl_base_cmd()} get pods -n {namespace} -o name"
182
182
  print_debug_command(cmd)
183
183
  result = subprocess.run(cmd, shell=True, capture_output=True, text=True)
184
184
  if result.returncode != 0:
@@ -485,16 +485,16 @@ def select_pod(args) -> Optional[Dict]:
485
485
  """Select a pod based on provided arguments."""
486
486
  namespace = args.namespace or get_current_namespace()
487
487
 
488
+ # Direct pod selection — skip list validation (requires only `get`, not `list`)
489
+ if args.pod:
490
+ return get_pod_by_name(args.pod, namespace)
491
+
488
492
  # Validate cluster connection and namespace before proceeding
489
493
  error = validate_cluster_connection(namespace)
490
494
  if error:
491
495
  err_console.print(f"[error]✗ Error:[/] {escape(error)}")
492
496
  return None
493
497
 
494
- # Direct pod selection
495
- if args.pod:
496
- return get_pod_by_name(args.pod, namespace)
497
-
498
498
  # Controller-based selection
499
499
  if args.controller:
500
500
  controller_type, controller_name = args.controller
File without changes
File without changes
File without changes
File without changes
File without changes