From 976518dd03a16ebfe6c1d391ee3c6afc9560acd7 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Thu, 25 Sep 2025 18:03:41 -0500 Subject: [PATCH] =?UTF-8?q?Rename=20controller=20=E2=86=92=20coordinator?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The term _controller_ has a specific meaning in Kubernetes context, and this process doesn't really fit it. It doesn't monitor any Kubernetes resources, custom or otherwise. It does use Kubernetes as a data store (via the lease), but I don't really think that counts. Anyway, the term _coordinator_ fits better in my opinion. --- Cargo.lock | 2 +- Cargo.toml | 2 +- Containerfile | 6 +++--- src/main.rs | 2 +- tests/integration/main.rs | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a442375..ed3a064 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -936,7 +936,7 @@ dependencies = [ ] [[package]] -name = "k8s-reboot-controller" +name = "k8s-reboot-coordinator" version = "0.1.0" dependencies = [ "k8s-openapi", diff --git a/Cargo.toml b/Cargo.toml index 4bd65d5..86e55bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "k8s-reboot-controller" +name = "k8s-reboot-coordinator" version = "0.1.0" edition = "2024" diff --git a/Containerfile b/Containerfile index b1c0f19..cca74a8 100644 --- a/Containerfile +++ b/Containerfile @@ -8,13 +8,13 @@ COPY . . RUN cargo build --release --locked -RUN strip target/release/k8s-reboot-controller +RUN strip target/release/k8s-reboot-coordinator FROM scratch -COPY --from=build /src/target/release/k8s-reboot-controller / +COPY --from=build /src/target/release/k8s-reboot-coordinator / ENV ROCKET_CLI_COLORS=false -ENTRYPOINT ["/k8s-reboot-controller"] +ENTRYPOINT ["/k8s-reboot-coordinator"] diff --git a/src/main.rs b/src/main.rs index 6e558da..fa9f5ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,5 +5,5 @@ fn rocket() -> _ { .with_writer(std::io::stderr) .init(); - k8s_reboot_controller::rocket() + k8s_reboot_coordinator::rocket() } diff --git a/tests/integration/main.rs b/tests/integration/main.rs index 9797498..e7b05f6 100644 --- a/tests/integration/main.rs +++ b/tests/integration/main.rs @@ -14,7 +14,7 @@ static SETUP: LazyLock<()> = LazyLock::new(|| { .with_env_filter(tracing_subscriber::EnvFilter::new(concat!( env!("CARGO_PKG_NAME"), "=trace,", - "k8s_reboot_controller=trace,", + "k8s_reboot_coordinator=trace,", "info", ))) .with_test_writer() @@ -26,11 +26,11 @@ fn setup() { } async fn async_client() -> AsyncClient { - AsyncClient::tracked(k8s_reboot_controller::rocket()) + AsyncClient::tracked(k8s_reboot_coordinator::rocket()) .await .unwrap() } fn client() -> Client { - Client::tracked(k8s_reboot_controller::rocket()).unwrap() + Client::tracked(k8s_reboot_coordinator::rocket()).unwrap() }