Skip to content

Commit 67d644c

Browse files
authored
kube 3 (#221)
Signed-off-by: clux <sszynrae@gmail.com>
1 parent db951ed commit 67d644c

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

Cargo.lock

Lines changed: 19 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ telemetry = ["opentelemetry-otlp"]
2929
actix-web = "4.12.1"
3030
futures = "0.3.31"
3131
tokio = { version = "1.49.0", features = ["macros", "rt-multi-thread"] }
32-
# k8s-openapi = { version = "0.26.1", features = ["latest"] }
33-
k8s-openapi = { rev="f21871c458ce6bfd7a78d2e07693cadaee0e617e", features=["latest"], git="https://github.com/Arnavion/k8s-openapi" }
32+
k8s-openapi = { version = "0.27.0", features = ["latest"] }
3433
schemars = "1"
3534
serde = { version = "1.0.228", features = ["derive"] }
3635
serde_json = "1.0.149"
@@ -54,10 +53,10 @@ tower-test = "0.4.0"
5453

5554
[dependencies.kube]
5655
features = ["runtime", "client", "derive"]
57-
# version = "2.0.1"
56+
version = "3"
5857

5958
# testing new releases - ignore
60-
git = "https://github.com/kube-rs/kube.git"
61-
branch = "main"
59+
# git = "https://github.com/kube-rs/kube.git"
60+
# branch = "main"
6261
# rev = "896ba6798ddac323dd464cc51938a6c818276f65"
6362
# path = "../kube/kube"

src/fixtures.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ impl Document {
2929
/// Modify document to set a deletion timestamp
3030
pub fn needs_delete(mut self) -> Self {
3131
let now: jiff::Timestamp = "2017-04-02T12:50:32Z".parse().unwrap();
32-
use k8s_openapi::apimachinery::pkg::apis::meta::v1::Time;
33-
self.meta_mut().deletion_timestamp = Some(Time(now));
32+
self.meta_mut().deletion_timestamp = Some(now.into());
3433
self
3534
}
3635

0 commit comments

Comments
 (0)