diff --git a/Cargo.lock b/Cargo.lock index 693f0c4..1f1c4f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -45,6 +45,17 @@ dependencies = [ "libc", ] +[[package]] +name = "annotate-snippets" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1" +dependencies = [ + "anstyle", + "memchr", + "unicode-width", +] + [[package]] name = "anstream" version = "1.0.0" @@ -110,6 +121,12 @@ dependencies = [ "derive_arbitrary", ] +[[package]] +name = "arraydeque" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" + [[package]] name = "assert-json-diff" version = "2.0.2" @@ -292,8 +309,8 @@ dependencies = [ "hickory-net", "hickory-proto", "json-patch", - "k8s-openapi", - "kube", + "k8s-openapi 0.27.1", + "kube 3.1.0", "kube-lease-manager", "prometheus", "rand 0.10.2", @@ -769,6 +786,24 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e" +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "encoding_rs_io" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cc3c5651fb62ab8aa3103998dade57efdd028544bd300516baa31840c252a83" +dependencies = [ + "encoding_rs", +] + [[package]] name = "enum-ordinalize" version = "4.4.1" @@ -1055,6 +1090,16 @@ dependencies = [ "web-time", ] +[[package]] +name = "granit-parser" +version = "0.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f50ba32164f9e098d5da618776a32afbb32270adcbe3d3d006107dae11e37c91" +dependencies = [ + "arraydeque", + "smallvec", +] + [[package]] name = "h2" version = "0.4.15" @@ -1606,19 +1651,42 @@ dependencies = [ "serde_json", ] +[[package]] +name = "k8s-openapi" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c6922f6afe80418dd6019818af5d0d34584c371780ff09b9752370c25b4abb" +dependencies = [ + "base64", + "jiff", + "serde", + "serde_json", +] + [[package]] name = "kube" version = "3.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "acc5a6a69da2975ed9925d56b5dcfc9cc739b66f37add06785b7c9f6d1e88741" dependencies = [ - "k8s-openapi", - "kube-client", - "kube-core", + "k8s-openapi 0.27.1", + "kube-client 3.1.0", + "kube-core 3.1.0", "kube-derive", "kube-runtime", ] +[[package]] +name = "kube" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bb9108095346a7096d11feeaff419c75dddcac1b2f59acb38d7bf3d13c3e146" +dependencies = [ + "k8s-openapi 0.28.0", + "kube-client 4.0.0", + "kube-core 4.0.0", +] + [[package]] name = "kube-client" version = "3.1.0" @@ -1638,8 +1706,8 @@ dependencies = [ "hyper-util", "jiff", "jsonpath-rust", - "k8s-openapi", - "kube-core", + "k8s-openapi 0.27.1", + "kube-core 3.1.0", "pem", "rustls", "secrecy", @@ -1654,6 +1722,39 @@ dependencies = [ "tracing", ] +[[package]] +name = "kube-client" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f628e05bc2264c21fe10d3d675117dc9b43ea3bf4fb07262a222679757537b" +dependencies = [ + "base64", + "bytes", + "either", + "futures", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "jiff", + "jsonpath-rust", + "k8s-openapi 0.28.0", + "kube-core 4.0.0", + "pem", + "secrecy", + "serde", + "serde-saphyr", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tokio-util", + "tower", + "tower-http 0.6.11", + "tracing", +] + [[package]] name = "kube-core" version = "3.1.0" @@ -1665,7 +1766,7 @@ dependencies = [ "http", "jiff", "json-patch", - "k8s-openapi", + "k8s-openapi 0.27.1", "schemars", "serde", "serde-value", @@ -1673,6 +1774,23 @@ dependencies = [ "thiserror 2.0.18", ] +[[package]] +name = "kube-core" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1b02f5933ba06140d58c7d6727f6c319f0962ec6a344aa5e21e475e891deaa8" +dependencies = [ + "derive_more", + "form_urlencoded", + "http", + "jiff", + "k8s-openapi 0.28.0", + "serde", + "serde-value", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "kube-derive" version = "3.1.0" @@ -1689,13 +1807,13 @@ dependencies = [ [[package]] name = "kube-lease-manager" -version = "0.11.1" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "159a11dbcf655bb619f6479081e565ea889bb860c5d7d830f3ad90adc74fb90a" +checksum = "4bef0716ec7c48420690430e408c7f2579e4252962a33b29d36e53b4618afc33" dependencies = [ - "k8s-openapi", - "kube", - "rand 0.9.4", + "k8s-openapi 0.28.0", + "kube 4.0.0", + "rand 0.10.2", "thiserror 2.0.18", "tokio", "tracing", @@ -1716,8 +1834,8 @@ dependencies = [ "hashbrown 0.16.1", "hostname", "json-patch", - "k8s-openapi", - "kube-client", + "k8s-openapi 0.27.1", + "kube-client 3.1.0", "parking_lot", "pin-project", "serde", @@ -1850,6 +1968,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + [[package]] name = "nom" version = "8.0.0" @@ -2587,6 +2711,25 @@ dependencies = [ "serde_derive", ] +[[package]] +name = "serde-saphyr" +version = "0.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5897b4c3faadadd35fdb6689f015641f3bc481d5adaaac56231ea15aeb243db3" +dependencies = [ + "ahash", + "annotate-snippets", + "base64", + "encoding_rs_io", + "getrandom 0.3.4", + "granit-parser", + "nohash-hasher", + "num-traits", + "serde", + "smallvec", + "zmij", +] + [[package]] name = "serde-value" version = "0.7.0" @@ -3226,6 +3369,12 @@ version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" +[[package]] +name = "unicode-width" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" + [[package]] name = "unsafe-libyaml" version = "0.2.11" diff --git a/Cargo.toml b/Cargo.toml index cd03f97..71ac1cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"] [dependencies] kube = { version = "3.1", features = ["runtime", "derive", "client", "jsonpatch"] } -kube-lease-manager = "0.11.1" +kube-lease-manager = "0.12.0" # JSON Patch construction for atomic finalizer add/remove with `test` guards # (mirrors kube-runtime's own finalizer helper; same version kube-core uses) json-patch = "4.2"