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.
- {kdebug-0.6.4 → kdebug-0.6.6}/PKG-INFO +1 -1
- {kdebug-0.6.4 → kdebug-0.6.6}/pyproject.toml +1 -1
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/backup.py +1 -1
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/cli.py +4 -4
- {kdebug-0.6.4 → kdebug-0.6.6}/.gitignore +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/README.md +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/__init__.py +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/completions/__init__.py +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/completions/_kdebug +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/completions/kdebug.bash +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/completions/kdebug.fish +0 -0
- {kdebug-0.6.4 → kdebug-0.6.6}/src/kdebug/debug.py +0 -0
|
@@ -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}
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|