Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

Commit 9b74b44

Browse files
authored
Merge pull request #1291 from viccuad/deps/policy-evaluator
deps: Consume policy-evaluator 0.29.1
2 parents f385b3f + 788ac8a commit 9b74b44

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

Cargo.lock

Lines changed: 21 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ authors = ["Kubewarden Developers <cncf-kubewarden-maintainers@lists.cncf.io
33
description = "Tool to manage Kubewarden policies"
44
edition = "2021"
55
name = "kwctl"
6-
version = "1.27.0"
6+
version = "1.27.1"
77

88
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
99

@@ -24,7 +24,7 @@ k8s-openapi = { version = "0.25.0", default-features = false, features = [
2424
] }
2525
lazy_static = "1.4.0"
2626
pem = "3"
27-
policy-evaluator = { git = "https://github.com/kubewarden/policy-evaluator", tag = "v0.29.0" }
27+
policy-evaluator = { git = "https://github.com/kubewarden/policy-evaluator", tag = "v0.29.1" }
2828
prettytable-rs = "^0.10"
2929
regex = "1"
3030
rustls-pki-types = { version = "1", features = ["alloc"] }
@@ -42,7 +42,6 @@ tracing = "0.1"
4242
tracing-subscriber = { version = "0.3", features = ["fmt"] }
4343
url = "2.5.0"
4444
walrus = "0.23.0"
45-
wasmparser = "0.235"
4645

4746
hostname-validator = "1.1.1"
4847
# This is required to have reqwest built using the `rustls-tls-native-roots`

src/backend.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ use anyhow::{anyhow, Result};
22
use lazy_static::lazy_static;
33
use policy_evaluator::{
44
evaluation_context::EvaluationContext, policy_evaluator::PolicyExecutionMode,
5-
policy_evaluator_builder::PolicyEvaluatorBuilder, policy_metadata::Metadata, ProtocolVersion,
5+
policy_evaluator_builder::PolicyEvaluatorBuilder, policy_metadata::Metadata, wasmparser,
6+
ProtocolVersion,
67
};
78
use semver::{BuildMetadata, Prerelease, Version};
89
use std::path::{Path, PathBuf};

tests/e2e.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use policy_evaluator::{
99
kubewarden_policy_sdk::crd::policies::{
1010
admission_policy, admission_policy_group, cluster_admission_policy,
1111
cluster_admission_policy_group, common::ContextAwareResource as ContextAwareResourceSdk,
12+
common::PolicyMode,
1213
},
1314
policy_fetcher, policy_metadata,
1415
};
@@ -43,6 +44,7 @@ fn admission_policy(name: &str, module: &str) -> admission_policy::AdmissionPoli
4344
},
4445
spec: Some(admission_policy::AdmissionPolicySpec {
4546
module: module.to_string(),
47+
mode: Some(PolicyMode::Protect),
4648
..Default::default()
4749
}),
4850
..Default::default()

0 commit comments

Comments
 (0)