Skip to content

Commit

Permalink
Upgrade garde to 0.19 for examples (#1515)
Browse files Browse the repository at this point in the history
replaces #1512 due to a change in their api

Signed-off-by: clux <[email protected]>
clux authored Jun 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f8a8407 commit b7f564e
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ latest = ["k8s-openapi/latest"]
[dev-dependencies]
tokio-util.workspace = true
assert-json-diff.workspace = true
garde = { version = "0.18.0", default-features = false, features = ["derive"] }
garde = { version = "0.19.0", default-features = false, features = ["derive"] }
anyhow.workspace = true
futures = { workspace = true, features = ["async-await"] }
jsonpath-rust.workspace = true
2 changes: 1 addition & 1 deletion examples/crd_api.rs
Original file line number Diff line number Diff line change
@@ -204,7 +204,7 @@ async fn main() -> Result<()> {
replicas: 1,
});
// using derived Validate rules locally:
assert!(fx.spec.validate(&()).is_err());
assert!(fx.spec.validate().is_err());
// check rejection from apiserver (validation rules embedded in JsonSchema)
match foos.create(&pp, &fx).await {
Err(kube::Error::Api(ae)) => {

0 comments on commit b7f564e

Please sign in to comment.