-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduces a new CLI tool for debugging self-managed Materialize deployments in Kubernetes. The tool can: - Collect pod logs - Collect info similar to `kubectl get all -o wide` - Up next will be getting events, describe output, and rest of TODOs.
- Loading branch information
1 parent
9c956cc
commit 2460e24
Showing
7 changed files
with
817 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Code generated by cargo-gazelle DO NOT EDIT | ||
|
||
# Copyright Materialize, Inc. and contributors. All rights reserved. | ||
# | ||
# Use of this software is governed by the Business Source License | ||
# included in the LICENSE file at the root of this repository. | ||
# | ||
# As of the Change Date specified in that file, in accordance with | ||
# the Business Source License, use of this software will be governed | ||
# by the Apache License, Version 2.0. | ||
|
||
load("@crates_io//:defs.bzl", "aliases", "all_crate_deps") | ||
load("@rules_rust//rust:defs.bzl", "rust_binary") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
rust_binary( | ||
name = "mz_self_managed_debug", | ||
srcs = glob(["src/**/*.rs"]), | ||
aliases = aliases( | ||
normal = True, | ||
proc_macro = True, | ||
), | ||
compile_data = [], | ||
crate_root = "src/main.rs", | ||
data = [], | ||
env = {}, | ||
features = [], | ||
proc_macro_deps = [] + all_crate_deps(proc_macro = True), | ||
rustc_env = {}, | ||
rustc_flags = [], | ||
version = "0.130.1", | ||
deps = [ | ||
"//src/build-info:mz_build_info", | ||
"//src/ore:mz_ore", | ||
] + all_crate_deps(normal = True), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[package] | ||
name = "mz-self-managed-debug" | ||
description = "Debug tool for self-managed Materialize." | ||
version = "0.130.1" | ||
edition.workspace = true | ||
rust-version.workspace = true | ||
publish = false | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
anyhow = "1.0.66" | ||
chrono = { version = "0.4.35", default-features = false } | ||
clap = { version = "4.5.23", features = ["derive", "env"] } | ||
futures = "0.3.25" | ||
k8s-openapi = { version = "0.22.0", features = ["v1_29"] } | ||
kube = { version = "0.92.1", default-features = false, features = ["client", "runtime", "ws"] } | ||
mz-build-info = { path = "../build-info" } | ||
mz-ore = { path = "../ore", features = ["cli", "test"] } | ||
serde = "1.0.152" | ||
serde_json = "1.0.125" | ||
tabled = "0.10.0" | ||
tokio = "1.38.0" | ||
tracing = "0.1.37" | ||
workspace-hack = { version = "0.0.0", path = "../workspace-hack", optional = true } | ||
|
||
[package.metadata.cargo-udeps.ignore] | ||
normal = ["workspace-hack"] | ||
|
||
[features] | ||
default = ["workspace-hack"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# `self-managed-debug` | ||
|
||
This tool allows us to debug a user's self-managed environment. |
Oops, something went wrong.