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
parent
afb0f53c7b
commit
976518dd03
|
@ -936,7 +936,7 @@ dependencies = [
|
|||
]
|
||||
|
||||
[[package]]
|
||||
name = "k8s-reboot-controller"
|
||||
name = "k8s-reboot-coordinator"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"k8s-openapi",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "k8s-reboot-controller"
|
||||
name = "k8s-reboot-coordinator"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -5,5 +5,5 @@ fn rocket() -> _ {
|
|||
.with_writer(std::io::stderr)
|
||||
.init();
|
||||
|
||||
k8s_reboot_controller::rocket()
|
||||
k8s_reboot_coordinator::rocket()
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue