Skip to content

Commit

Permalink
Merge pull request #598 from fabriziosestito/build/bump-policy-evalua…
Browse files Browse the repository at this point in the history
…tor-to-v0.12.2

build(deps): bump policy-evaluator to v0.12.2
  • Loading branch information
flavio authored Nov 23, 2023
2 parents 80e60a8 + 7da7860 commit 17a6122
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 31 deletions.
52 changes: 24 additions & 28 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 @@ -28,7 +28,7 @@ opentelemetry = { version = "0.21", default-features = false, features = [
] }
opentelemetry_sdk = { version = "0.21", features = ["rt-tokio"] }
procfs = "0.16"
policy-evaluator = { git = "https://github.com/kubewarden/policy-evaluator", tag = "v0.12.1" }
policy-evaluator = { git = "https://github.com/kubewarden/policy-evaluator", tag = "v0.12.2" }
rayon = "1.8"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use anyhow::{anyhow, Result};
use policy_evaluator::policy_metadata::ContextAwareResource;
use serde::Deserialize;
use serde_yaml::Value;
use std::collections::{HashMap, HashSet};
use std::collections::{BTreeSet, HashMap};
use std::fs::File;
use std::iter::FromIterator;
use std::path::Path;
Expand Down Expand Up @@ -35,7 +35,7 @@ pub struct Policy {
pub allowed_to_mutate: Option<bool>,
pub settings: Option<HashMap<String, Value>>,
#[serde(default)]
pub context_aware_resources: HashSet<ContextAwareResource>,
pub context_aware_resources: BTreeSet<ContextAwareResource>,
}

impl Policy {
Expand Down

0 comments on commit 17a6122

Please sign in to comment.