Skip to content

Commit

Permalink
Merge pull request #4 from ereslibre/update-sdk
Browse files Browse the repository at this point in the history
Update rust SDK to the latest version
  • Loading branch information
ereslibre authored Apr 20, 2021
2 parents 1000629 + 295cf45 commit 77f64f8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 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
@@ -1,6 +1,6 @@
[package]
name = "psp-capabilities"
version = "0.1.1"
version = "0.1.2"
authors = ["Flavio Castelli <[email protected]>"]
edition = "2018"

Expand All @@ -13,7 +13,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
wapc-guest = "0.4.0"
jsonpath_lib = "0.2.6"
kubewarden-policy-sdk = "0.1.0"
kubewarden-policy-sdk = "0.2.0"
k8s-openapi = { version = "0.11.0", features = ["v1_20"] }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn validate(payload: &[u8]) -> CallResult {
match validate_added_caps(&validation_req) {
Ok(()) => {
if let Some(patched_object) = patch_object(&validation_req)? {
mutate_request(&patched_object)
mutate_request(patched_object)
} else {
accept_request()
}
Expand Down

0 comments on commit 77f64f8

Please sign in to comment.