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() }