Skip to content

Commit

Permalink
Merge pull request #126 from kubewarden/mutate-everything
Browse files Browse the repository at this point in the history
feat: mutate all types of resources
  • Loading branch information
flavio authored Sep 9, 2024
2 parents 9e1fc10 + 24c3073 commit e9f78cf
Show file tree
Hide file tree
Showing 5 changed files with 447 additions and 244 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
on:
push:
branches:
- main
- main
tags:
- 'v*'
- "v*"

name: Release policy

jobs:

test:
name: run tests and linters
uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-rust.yml@v3.3.4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ crate-type = ["cdylib"]

[dependencies]
anyhow = "1.0"
k8s-openapi = { version = "0.22.0", default_features = false, features = [
k8s-openapi = { version = "0.22.0", default-features = false, features = [
"v1_27",
] }
kubewarden-policy-sdk = "0.11.0"
Expand Down
2 changes: 1 addition & 1 deletion e2e.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

[ "$status" -eq 0 ]
[ $(expr "$output" : '.*"allowed":false.*') -ne 0 ]
[ $(expr "$output" : '.*"message":"Pod invalid-pod-name is not accepted: verification of image ghcr.io/kubewarden/test-verify-image-signatures:unsigned failed.*') -ne 0 ]
[ $(expr "$output" : '.*"message":"Resource invalid-pod-name is not accepted: verification of image ghcr.io/kubewarden/test-verify-image-signatures:unsigned failed.*') -ne 0 ]
}

@test "Mutate Pod definition" {
Expand Down
Loading

0 comments on commit e9f78cf

Please sign in to comment.