From faf3525a0aa20651cdb30c1238cc08ebf30e0cce Mon Sep 17 00:00:00 2001 From: Flavio Castelli Date: Mon, 7 Aug 2023 11:42:08 +0200 Subject: [PATCH] fix: ensure code builds even after the deps update Recent version of the Kubewarden SDK require k8s-openapi too, like this policy does. The same version of the k8s-openapi must be used by the two codebases. The Kubewarden SDK requires the k8s-openapi crate only when a specific feature is used. Since this policy doesn't require this feature, we can safely turn it off. Signed-off-by: Flavio Castelli --- Cargo.lock | 17 +---------------- Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cde07f7..1414687 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -59,7 +59,7 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" name = "flexvolume-drivers-psp" version = "0.1.7" dependencies = [ - "k8s-openapi 0.19.0", + "k8s-openapi", "kubewarden-policy-sdk", "serde", "serde_json", @@ -123,20 +123,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "112c678d4050afce233f4f2852bb2eb519230b3cf12f33585275537d7e41578d" -[[package]] -name = "k8s-openapi" -version = "0.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd990069640f9db34b3b0f7a1afc62a05ffaa3be9b66aa3c313f58346df7f788" -dependencies = [ - "base64", - "bytes", - "chrono", - "serde", - "serde-value", - "serde_json", -] - [[package]] name = "k8s-openapi" version = "0.19.0" @@ -163,7 +149,6 @@ dependencies = [ "anyhow", "cfg-if", "chrono", - "k8s-openapi 0.18.0", "num", "num-derive", "num-traits", diff --git a/Cargo.toml b/Cargo.toml index 9796585..ac72fe0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,6 @@ crate-type = ["cdylib"] [dependencies] k8s-openapi = { version = "0.19.0", features = ["v1_24"] } -kubewarden-policy-sdk = "0.9.6" +kubewarden-policy-sdk = { version = "0.9.6", default-features = false } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0"