Rename controller → coordinator

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.
master
Dustin 2025-09-25 18:03:41 -05:00
parent afb0f53c7b
commit 976518dd03
5 changed files with 9 additions and 9 deletions

2
Cargo.lock generated
View File

@ -936,7 +936,7 @@ dependencies = [
]
[[package]]
name = "k8s-reboot-controller"
name = "k8s-reboot-coordinator"
version = "0.1.0"
dependencies = [
"k8s-openapi",

View File

@ -1,5 +1,5 @@
[package]
name = "k8s-reboot-controller"
name = "k8s-reboot-coordinator"
version = "0.1.0"
edition = "2024"

View File

@ -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"]

View File

@ -5,5 +5,5 @@ fn rocket() -> _ {
.with_writer(std::io::stderr)
.init();
k8s_reboot_controller::rocket()
k8s_reboot_coordinator::rocket()
}

View File

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