Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
karencfv committed Aug 14, 2024
1 parent a487b63 commit f2ba87e
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 139 deletions.
30 changes: 0 additions & 30 deletions Cargo.lock

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

6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ members = [
"certificates",
"clickhouse-admin",
"clickhouse-admin/api",
"clickhouse-admin/types",
"clients/bootstrap-agent-client",
"clients/clickhouse-admin-client",
"clients/cockroach-admin-client",
"clients/ddm-admin-client",
"clients/dns-service-client",
Expand Down Expand Up @@ -117,9 +115,7 @@ default-members = [
"certificates",
"clickhouse-admin",
"clickhouse-admin/api",
"clickhouse-admin/types",
"clients/bootstrap-agent-client",
"clients/clickhouse-admin-client",
"clients/cockroach-admin-client",
"clients/ddm-admin-client",
"clients/dns-service-client",
Expand Down Expand Up @@ -301,8 +297,6 @@ chrono = { version = "0.4", features = [ "serde" ] }
ciborium = "0.2.2"
clap = { version = "4.5", features = ["cargo", "derive", "env", "wrap_help"] }
clickhouse-admin-api = { path = "clickhouse-admin/api" }
clickhouse-admin-client = { path = "clients/clickhouse-admin-client" }
clickhouse-admin-types = { path = "clickhouse-admin/types" }
clickward = { git = "https://github.com/oxidecomputer/clickward", rev = "ceec762e6a87d2a22bf56792a3025e145caa095e" }
cockroach-admin-api = { path = "cockroach-admin/api" }
cockroach-admin-client = { path = "clients/cockroach-admin-client" }
Expand Down
3 changes: 0 additions & 3 deletions clickhouse-admin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ camino.workspace = true
chrono.workspace = true
clap.workspace = true
clickhouse-admin-api.workspace = true
clickhouse-admin-types.workspace = true
dropshot.workspace = true
http.workspace = true
illumos-utils.workspace = true
Expand All @@ -36,10 +35,8 @@ nexus-test-utils.workspace = true
omicron-test-utils.workspace = true
openapi-lint.workspace = true
openapiv3.workspace = true
proptest.workspace = true
serde_json.workspace = true
subprocess.workspace = true
test-strategy.workspace = true
url.workspace = true

[lints]
Expand Down
1 change: 0 additions & 1 deletion clickhouse-admin/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ license = "MPL-2.0"
workspace = true

[dependencies]
clickhouse-admin-types.workspace = true
dropshot.workspace = true
omicron-common.workspace = true
omicron-uuid-kinds.workspace = true
Expand Down
10 changes: 0 additions & 10 deletions clickhouse-admin/dummy-config.toml

This file was deleted.

6 changes: 0 additions & 6 deletions clickhouse-admin/src/bin/clickhouse-admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ enum Args {
},
}

// TODO: Remove this comment and move config file to smf/clickhouse-admin
// Test with cargo run --bin=clickhouse-admin -- run -a [fd00:1122:3344:101::e]:8888 -H [::1]:8888 -c ./clickhouse-admin/dummy-config.toml

#[tokio::main]
async fn main() {
if let Err(err) = main_impl().await {
Expand All @@ -53,9 +50,6 @@ async fn main_impl() -> Result<(), CmdError> {
.map_err(|err| CmdError::Failure(anyhow!(err)))?;
config.dropshot.bind_address = SocketAddr::V6(http_address);

// TODO: Change for the actual clickhouse address
// let dummy_address =
// SocketAddrV6::new(Ipv6Addr::LOCALHOST, 8080, 0, 0);
let clickward = Clickward::new(clickhouse_address);

let server =
Expand Down
4 changes: 3 additions & 1 deletion clickhouse-admin/src/clickward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ impl Clickward {
Self { clickhouse_address }
}

pub fn clickhouse_address(&self) -> Result<ClickhouseAddress, ClickwardError> {
pub fn clickhouse_address(
&self,
) -> Result<ClickhouseAddress, ClickwardError> {
Ok(ClickhouseAddress { clickhouse_address: self.clickhouse_address })
}
}
18 changes: 0 additions & 18 deletions clickhouse-admin/types/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion clickhouse-admin/types/src/lib.rs

This file was deleted.

18 changes: 0 additions & 18 deletions clients/clickhouse-admin-client/Cargo.toml

This file was deleted.

25 changes: 0 additions & 25 deletions clients/clickhouse-admin-client/src/lib.rs

This file was deleted.

36 changes: 16 additions & 20 deletions sled-agent/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1573,17 +1573,15 @@ impl ServiceManager {
.add_property_group(config),
);

let ch_address = SocketAddr::new(
IpAddr::V6(listen_addr),
CLICKHOUSE_PORT,
)
.to_string();
let ch_address =
SocketAddr::new(IpAddr::V6(listen_addr), CLICKHOUSE_PORT)
.to_string();

let admin_address = SocketAddr::new(
IpAddr::V6(listen_addr),
CLICKHOUSE_ADMIN_PORT,
)
.to_string();
let admin_address = SocketAddr::new(
IpAddr::V6(listen_addr),
CLICKHOUSE_ADMIN_PORT,
)
.to_string();

let clickhouse_admin_config =
PropertyGroupBuilder::new("config")
Expand Down Expand Up @@ -1654,18 +1652,16 @@ impl ServiceManager {
.add_property_group(config),
);

let ch_address = SocketAddr::new(
IpAddr::V6(listen_addr),
CLICKHOUSE_PORT,
)
.to_string();

let admin_address = SocketAddr::new(
IpAddr::V6(listen_addr),
CLICKHOUSE_ADMIN_PORT,
)
let ch_address =
SocketAddr::new(IpAddr::V6(listen_addr), CLICKHOUSE_PORT)
.to_string();

let admin_address = SocketAddr::new(
IpAddr::V6(listen_addr),
CLICKHOUSE_ADMIN_PORT,
)
.to_string();

let clickhouse_admin_config =
PropertyGroupBuilder::new("config")
.add_property(
Expand Down

0 comments on commit f2ba87e

Please sign in to comment.