kdebug 0.4.0__tar.gz → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kdebug
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: Universal Kubernetes Debug Container Utility
5
5
  Project-URL: Homepage, https://github.com/jessegoodier/kdebug
6
6
  Project-URL: Repository, https://github.com/jessegoodier/kdebug
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
20
20
 
21
21
  Simple utility for launching ephemeral debug containers in Kubernetes pods with interactive shell access, backup capabilities, and a colorful TUI for pod selection.
22
22
 
23
- Similar to kpf <https://github.com/jessegoodier/kpf>, this is a python wrapper around `kubectl debug` and `kubectl cp`.
23
+ Similar to [kpf](https://github.com/jessegoodier/kpf), this is a python wrapper around `kubectl debug` and `kubectl cp`.
24
24
 
25
25
  ## Features
26
26
 
@@ -31,6 +31,18 @@ Similar to kpf <https://github.com/jessegoodier/kpf>, this is a python wrapper a
31
31
  - 🔐 **Root Access Support** - Run debug containers as root when needed
32
32
  - 📦 **Controller Support** - Works with Deployments, StatefulSets, and DaemonSets
33
33
 
34
+ <details open>
35
+ <summary>Demo of the debug TUI</summary>
36
+
37
+ ![debug tui](docs/kdebug-demo_tui.gif)
38
+ </details>
39
+
40
+ <details open>
41
+ <summary>Demo of backups</summary>
42
+
43
+ ![backup demo](docs/kdebug-demo_backups.gif)
44
+ </details>
45
+
34
46
  ## Installation
35
47
 
36
48
  ```bash
@@ -45,7 +57,7 @@ git clone https://github.com/jessegoodier/kdebug.git
45
57
  cd kdebug
46
58
  ```
47
59
 
48
- Then make it is executable and add to something in your PATH
60
+ Then make it executable and add to something in your PATH
49
61
 
50
62
  ```
51
63
  chmod +x bin/kdebug
@@ -113,14 +125,11 @@ These options are passed to all kubectl commands, including those used for tab c
113
125
 
114
126
  When no pod or controller is specified, kdebug launches an interactive menu system:
115
127
 
116
- # Interactive mode - select from all resources in current namespace
117
128
  ```bash
129
+ # Interactive mode - select from all resources in current namespace
118
130
  kdebug
119
- ```
120
131
 
121
132
  # Interactive mode with specific namespace
122
-
123
- ```bash
124
133
  kdebug -n openclaw
125
134
  ```
126
135
 
@@ -270,7 +279,7 @@ kdebug uses a kubecolor-inspired color scheme:
270
279
 
271
280
  ## Requirements
272
281
 
273
- - Python 3.6+
282
+ - Python 3.9+
274
283
  - kubectl configured with cluster access
275
284
  - Kubernetes cluster with ephemeral containers support (v1.23+)
276
285
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Simple utility for launching ephemeral debug containers in Kubernetes pods with interactive shell access, backup capabilities, and a colorful TUI for pod selection.
4
4
 
5
- Similar to kpf <https://github.com/jessegoodier/kpf>, this is a python wrapper around `kubectl debug` and `kubectl cp`.
5
+ Similar to [kpf](https://github.com/jessegoodier/kpf), this is a python wrapper around `kubectl debug` and `kubectl cp`.
6
6
 
7
7
  ## Features
8
8
 
@@ -13,6 +13,18 @@ Similar to kpf <https://github.com/jessegoodier/kpf>, this is a python wrapper a
13
13
  - 🔐 **Root Access Support** - Run debug containers as root when needed
14
14
  - 📦 **Controller Support** - Works with Deployments, StatefulSets, and DaemonSets
15
15
 
16
+ <details open>
17
+ <summary>Demo of the debug TUI</summary>
18
+
19
+ ![debug tui](docs/kdebug-demo_tui.gif)
20
+ </details>
21
+
22
+ <details open>
23
+ <summary>Demo of backups</summary>
24
+
25
+ ![backup demo](docs/kdebug-demo_backups.gif)
26
+ </details>
27
+
16
28
  ## Installation
17
29
 
18
30
  ```bash
@@ -27,7 +39,7 @@ git clone https://github.com/jessegoodier/kdebug.git
27
39
  cd kdebug
28
40
  ```
29
41
 
30
- Then make it is executable and add to something in your PATH
42
+ Then make it executable and add to something in your PATH
31
43
 
32
44
  ```
33
45
  chmod +x bin/kdebug
@@ -95,14 +107,11 @@ These options are passed to all kubectl commands, including those used for tab c
95
107
 
96
108
  When no pod or controller is specified, kdebug launches an interactive menu system:
97
109
 
98
- # Interactive mode - select from all resources in current namespace
99
110
  ```bash
111
+ # Interactive mode - select from all resources in current namespace
100
112
  kdebug
101
- ```
102
113
 
103
114
  # Interactive mode with specific namespace
104
-
105
- ```bash
106
115
  kdebug -n openclaw
107
116
  ```
108
117
 
@@ -252,7 +261,7 @@ kdebug uses a kubecolor-inspired color scheme:
252
261
 
253
262
  ## Requirements
254
263
 
255
- - Python 3.6+
264
+ - Python 3.9+
256
265
  - kubectl configured with cluster access
257
266
  - Kubernetes cluster with ephemeral containers support (v1.23+)
258
267
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "kdebug"
7
- version = "0.4.0"
7
+ version = "0.4.1"
8
8
  description = "Universal Kubernetes Debug Container Utility"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -925,7 +925,7 @@ def create_backup(
925
925
  f"{kubectl_base_cmd()} exec {pod_name} "
926
926
  f"-n {namespace} "
927
927
  f"-c {container_name} "
928
- f"-- ls -d {backup_path} 2>/dev/null"
928
+ f"-- ls -d /proc/1/root{backup_path} 2>/dev/null"
929
929
  )
930
930
 
931
931
  result = run_command(verify_cmd, check=False)
@@ -945,7 +945,7 @@ def create_backup(
945
945
  f"{kubectl_base_cmd()} exec {pod_name} "
946
946
  f"-n {namespace} "
947
947
  f"-c {container_name} "
948
- f"-- ls -la {parent_dir} 2>/dev/null | head -20"
948
+ f"-- ls -la /proc/1/root{parent_dir} 2>/dev/null | head -20"
949
949
  )
950
950
  parent_result = run_command(parent_cmd, check=False)
951
951
  if parent_result:
@@ -1019,7 +1019,7 @@ def create_backup(
1019
1019
  f"{kubectl_base_cmd()} cp "
1020
1020
  f"-n {namespace} "
1021
1021
  f"-c {container_name} "
1022
- f"{pod_name}:{backup_path} "
1022
+ f"{pod_name}:/proc/1/root{backup_path} "
1023
1023
  f"{local_filename}"
1024
1024
  )
1025
1025
 
File without changes
File without changes