Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add experimental debug container command #204

Merged
merged 21 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
4e7d840
Basic ability to create and attach a debug container
nightkr Feb 9, 2024
7b2a249
Add support for copying env from a target container, as well as runni…
nightkr Feb 9, 2024
87fc7ba
Send TTY window size
nightkr Feb 12, 2024
10be291
Read asynchronously from stdin
nightkr Feb 12, 2024
d7a85a0
Default to the default namespace
nightkr Feb 16, 2024
b6ad59f
Fix stdin not being re-registered correctly with the waker
nightkr Feb 16, 2024
ce59f16
Add debug error messages
nightkr Feb 19, 2024
2e26270
Let AsyncStdin reset its state once shut down
nightkr Feb 28, 2024
9754538
Docs, demarcate as experimental
nightkr Feb 28, 2024
7bbc567
Move debug container name to span
nightkr Feb 28, 2024
70af91a
Changelog
nightkr Feb 28, 2024
4069084
ci: use install-nix-action
NickLarsenNZ Mar 4, 2024
4d6ed4b
fix(nix): add shebang to script (stackabletech/operator-templating#325)
NickLarsenNZ Mar 4, 2024
bc79d8c
Merge remote-tracking branch 'origin/main' into feature/debug
NickLarsenNZ Mar 4, 2024
3fa1b7e
Move dependencies into root Cargo.toml
nightkr Mar 12, 2024
1567a8d
Uglify formatting
nightkr Mar 12, 2024
9943d7f
Merge branch 'feature/debug' of github.com:stackabletech/stackable in…
nightkr Mar 12, 2024
335e1ac
Change the container prefix from sble-debug- to stackablectl-debug-
nightkr Mar 12, 2024
9d26417
Default to the target container's image
nightkr Mar 12, 2024
bc4b32a
Run debug container as root
nightkr Mar 12, 2024
760358c
Merge branch 'main' into feature/debug
nightkr Mar 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 92 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ dotenvy = "0.15"
futures = "0.3"
indexmap = { version = "2.0", features = ["serde"] }
k8s-openapi = { version = "0.20", default-features = false, features = ["v1_28"] }
kube = { version = "0.87", default-features = false, features = ["client", "rustls-tls"] }
kube = { version = "0.87", default-features = false, features = ["client", "rustls-tls", "ws"] }
lazy_static = "1.4"
libc = "0.2.153"
once_cell = "1.18"
phf = "0.11"
phf_codegen = "0.11"
Expand All @@ -42,10 +43,11 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
sha2 = "0.10"
snafu = "0.7"
snafu = { version = "0.7", features = ["futures"] }
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", tag = "0.61.0" }
tera = "1.18"
tokio = { version = "1.29.0", features = ["rt-multi-thread", "macros", "fs", "process"] }
termion = "3.0.0"
tokio = { version = "1.29.0", features = ["rt-multi-thread", "macros", "fs", "process", "io-std"] }
tower-http = "0.4"
tracing = "0.1"
tracing-subscriber = "0.3"
Expand Down
17 changes: 9 additions & 8 deletions docs/modules/stackablectl/partials/commands/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ Command line tool to interact with the Stackable Data Platform
Usage: stackablectl [OPTIONS] <COMMAND>

Commands:
operator Interact with single operator instead of the full platform
release Interact with all operators of the platform which are released together
stack Interact with stacks, which are ready-to-use product combinations
stacklet Interact with deployed stacklets, which are bundles of resources and containers required to run the product
demo Interact with demos, which are end-to-end usage demonstrations of the Stackable data platform
completions Generate shell completions for this tool
cache Interact with locally cached files
help Print this message or the help of the given subcommand(s)
operator Interact with single operator instead of the full platform
release Interact with all operators of the platform which are released together
stack Interact with stacks, which are ready-to-use product combinations
stacklet Interact with deployed stacklets, which are bundles of resources and containers required to run the product
demo Interact with demos, which are end-to-end usage demonstrations of the Stackable data platform
completions Generate shell completions for this tool
cache Interact with locally cached files
experimental-debug EXPERIMENTAL: Launch a debug container for a Pod
help Print this message or the help of the given subcommand(s)

Options:
-l, --log-level <LOG_LEVEL>
Expand Down
44 changes: 44 additions & 0 deletions extra/completions/_stackablectl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading