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 <[email protected]>
  • Loading branch information
flavio committed Aug 7, 2023
1 parent 7e6800c commit faf3525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 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.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit faf3525

Please sign in to comment.