Skip to content

Commit

Permalink
fix: ensure code builds even after the deps update
Browse files Browse the repository at this point in the history
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 <fcastelli@suse.com>
  • Loading branch information
flavio committed Aug 7, 2023
1 parent 7b551ac commit b74c4f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 18 deletions.
17 changes: 1 addition & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
crate-type = ["cdylib"]

[dependencies]
k8s-openapi = { version = "0.19.0", features = ["v1_24"] }
kubewarden-policy-sdk = "0.9.6"
k8s-openapi = { version = "0.19.0", features = ["v1_27"] }
kubewarden-policy-sdk = { version = "0.9.6", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

0 comments on commit b74c4f9

Please sign in to comment.