kdebug 0.6.11__tar.gz → 0.7.1__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.11 → kdebug-0.7.1}/PKG-INFO +1 -1
- {kdebug-0.6.11 → kdebug-0.7.1}/pyproject.toml +2 -2
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/backup.py +1 -1
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/cli.py +2 -2
- {kdebug-0.6.11 → kdebug-0.7.1}/.gitignore +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/README.md +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/__init__.py +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/completions/__init__.py +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/completions/_kdebug +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/completions/kdebug.bash +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/completions/kdebug.fish +0 -0
- {kdebug-0.6.11 → kdebug-0.7.1}/src/kdebug/debug.py +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "kdebug"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.7.1"
|
|
8
8
|
description = "TUI for Kubernetes Debug Containers"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -37,7 +37,7 @@ include = ["src/kdebug"]
|
|
|
37
37
|
[dependency-groups]
|
|
38
38
|
dev = [
|
|
39
39
|
"pytest>=9.1.1",
|
|
40
|
-
"ruff>=0.16.
|
|
40
|
+
"ruff>=0.16.9",
|
|
41
41
|
]
|
|
42
42
|
|
|
43
43
|
[tool.pytest.ini_options]
|
|
@@ -150,7 +150,7 @@ def create_backup(
|
|
|
150
150
|
# Show source size (with excludes applied) before running tar
|
|
151
151
|
du_result = _cli.run_command(
|
|
152
152
|
f"{_cli.kubectl_base_cmd()} exec {pod_name} -n {namespace} -c {container_name} "
|
|
153
|
-
f"--
|
|
153
|
+
f"-- sh -c 'du -sh{exclude_str} /proc/1/root/{container_path_rel}'",
|
|
154
154
|
check=False,
|
|
155
155
|
)
|
|
156
156
|
if du_result:
|
|
@@ -106,7 +106,7 @@ def run_command(cmd: str, check: bool = True, use_bash: bool = False) -> Optiona
|
|
|
106
106
|
)
|
|
107
107
|
else:
|
|
108
108
|
result = subprocess.run(
|
|
109
|
-
|
|
109
|
+
["sh", "-c", cmd], capture_output=True, text=True, check=check
|
|
110
110
|
)
|
|
111
111
|
return result.stdout.strip()
|
|
112
112
|
except subprocess.CalledProcessError as e:
|
|
@@ -180,7 +180,7 @@ def validate_cluster_connection(namespace: str) -> Optional[str]:
|
|
|
180
180
|
"""
|
|
181
181
|
cmd = f"{kubectl_base_cmd()} get pods -n {namespace} -o name"
|
|
182
182
|
print_debug_command(cmd)
|
|
183
|
-
result = subprocess.run(
|
|
183
|
+
result = subprocess.run(["sh", "-c", cmd], capture_output=True, text=True)
|
|
184
184
|
if result.returncode != 0:
|
|
185
185
|
return result.stderr.strip()
|
|
186
186
|
return None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|