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