Skip to content

Commit e99bc2e

Browse files
bump kube, k8s-openapi, and rust versions, and edition to 2024
1 parent 1e4cc5c commit e99bc2e

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.github/workflows/pr.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: actions-rs/toolchain@v1
1515
with:
16-
toolchain: 1.83.0
16+
toolchain: 1.89.0
1717
components: rustfmt, clippy
1818
- uses: Swatinem/rust-cache@v2
1919
- uses: actions-rs/cargo@v1
2020
with:
21-
toolchain: 1.83.0
21+
toolchain: 1.89.0
2222
command: fmt
2323
args: -- --check
2424
- uses: actions-rs/cargo@v1
2525
with:
26-
toolchain: 1.83.0
26+
toolchain: 1.89.0
2727
command: clippy
2828
args: -- --deny warnings
2929
- uses: actions-rs/cargo@v1
3030
with:
31-
toolchain: 1.83.0
31+
toolchain: 1.89.0
3232
command: install
3333
args: --locked cargo-deny --version=0.16.2
3434
- uses: actions-rs/cargo@v1
3535
with:
36-
toolchain: 1.83.0
36+
toolchain: 1.89.0
3737
command: deny
3838
args: check
3939
test:
@@ -42,9 +42,9 @@ jobs:
4242
- uses: actions/checkout@v2
4343
- uses: actions-rs/toolchain@v1
4444
with:
45-
toolchain: 1.83.0
45+
toolchain: 1.89.0
4646
- uses: Swatinem/rust-cache@v2
4747
- uses: actions-rs/cargo@v1
4848
with:
49-
toolchain: 1.83.0
49+
toolchain: 1.89.0
5050
command: test

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "k8s-controller"
3-
version = "0.5.0"
4-
edition = "2021"
5-
rust-version = "1.83.0"
3+
version = "0.6.0"
4+
edition = "2024"
5+
rust-version = "1.89.0"
66

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

2222
[dev-dependencies]
23-
k8s-openapi = { version = "0.25.0", default-features = false, features = ["v1_31"] }
23+
k8s-openapi = { version = "0.26.0", default-features = false, features = ["v1_31"] }
2424
tokio = "1"

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
edition = "2021"
1+
edition = "2024"
22
tab_spaces = 4

src/controller.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ use kube::api::Api;
99
use kube::core::{ClusterResourceScope, NamespaceResourceScope};
1010
use kube::{Client, Resource, ResourceExt};
1111
use kube_runtime::controller::Action;
12-
use kube_runtime::finalizer::{finalizer, Event};
12+
use kube_runtime::finalizer::{Event, finalizer};
1313
use kube_runtime::watcher;
14-
use rand::{rng, Rng};
15-
use tracing::{event, Level};
14+
use rand::{Rng, rng};
15+
use tracing::{Level, event};
1616

1717
/// The [`Controller`] watches a set of resources, calling methods on the
1818
/// provided [`Context`] when events occur.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#![warn(clippy::useless_conversion)]
3131
#![warn(clippy::builtin_type_shadow)]
3232
#![warn(clippy::duplicate_underscore_argument)]
33-
#![warn(clippy::double_neg)]
33+
#![warn(double_negations)]
3434
#![warn(clippy::unnecessary_mut_passed)]
3535
#![warn(clippy::wildcard_in_or_patterns)]
3636
#![warn(clippy::crosspointer_transmute)]

0 commit comments

Comments
 (0)