Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,27 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
command: clippy
args: -- --deny warnings
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
command: install
args: --locked cargo-deny --version=0.16.2
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
command: deny
args: check
test:
Expand All @@ -42,9 +42,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
- uses: Swatinem/rust-cache@v2
- uses: actions-rs/cargo@v1
with:
toolchain: 1.83.0
toolchain: 1.89.0
command: test
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "k8s-controller"
version = "0.5.0"
edition = "2021"
rust-version = "1.83.0"
version = "0.6.0"
edition = "2024"
rust-version = "1.89.0"

description = "lightweight framework for writing kubernetes controllers"
repository = "https://github.com/MaterializeInc/k8s-controller"
Expand All @@ -13,12 +13,12 @@ include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
[dependencies]
async-trait = "0.1"
futures = "0.3"
kube = { version = "1.1.0", default-features = false, features = ["client"] }
kube-runtime = "1.1.0"
kube = { version = "2.0.0", default-features = false, features = ["client"] }
kube-runtime = "2.0.0"
rand = "0.9.0"
serde = "1"
tracing = "0.1"

[dev-dependencies]
k8s-openapi = { version = "0.25.0", default-features = false, features = ["v1_31"] }
k8s-openapi = { version = "0.26.0", default-features = false, features = ["v1_31"] }
tokio = "1"
2 changes: 1 addition & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
edition = "2021"
edition = "2024"
tab_spaces = 4
6 changes: 3 additions & 3 deletions src/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use kube::api::Api;
use kube::core::{ClusterResourceScope, NamespaceResourceScope};
use kube::{Client, Resource, ResourceExt};
use kube_runtime::controller::Action;
use kube_runtime::finalizer::{finalizer, Event};
use kube_runtime::finalizer::{Event, finalizer};
use kube_runtime::watcher;
use rand::{rng, Rng};
use tracing::{event, Level};
use rand::{Rng, rng};
use tracing::{Level, event};

/// The [`Controller`] watches a set of resources, calling methods on the
/// provided [`Context`] when events occur.
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#![warn(clippy::useless_conversion)]
#![warn(clippy::builtin_type_shadow)]
#![warn(clippy::duplicate_underscore_argument)]
#![warn(clippy::double_neg)]
#![warn(double_negations)]
#![warn(clippy::unnecessary_mut_passed)]
#![warn(clippy::wildcard_in_or_patterns)]
#![warn(clippy::crosspointer_transmute)]
Expand Down
Loading