kdebug 0.6.4__tar.gz → 0.6.6__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.4
3
+ Version: 0.6.6
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.4"
7
+ version = "0.6.6"
8
8
  description = "TUI for Kubernetes Debug Containers"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -159,7 +159,7 @@ def create_backup(
159
159
  )
160
160
 
161
161
  _cli.console.print("[warning]Creating tar.gz archive...[/]")
162
- backup_cmd = f"tar czf /tmp/kdebug-backup.tar.gz /proc/1/root/{container_path_rel} {exclude_str}"
162
+ backup_cmd = f"tar czf /tmp/kdebug-backup.tar.gz{exclude_str} /proc/1/root/{container_path_rel}"
163
163
 
164
164
  cmd = (
165
165
  f"{_cli.kubectl_base_cmd()} exec {pod_name} "
@@ -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