Skip to content

Commit

Permalink
chore: update verifier to v0.3.2
Browse files Browse the repository at this point in the history
Signed-off-by: Vishal Choudhary <[email protected]>
  • Loading branch information
vishal-chdhry committed Jul 11, 2023
1 parent 4648025 commit ff79e28
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
30 changes: 15 additions & 15 deletions configs/samples/kyverno-policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ spec:
ZzAbiSUwCgYIKoZIzj0EAwIDRwAwRAIgU3O7Qnk9PGCV4aXgZAXp0h4Iz2O7XUnP
Ufv4SgD7neECIHLb+BDvRFPJ77FpfIYxBO70AHB7Kp0nWKCqyv3FK4aT
-----END CERTIFICATE-----
# validate:
# message: "not allowed"
# deny:
# conditions:
# all:
# - key: "{{ response.verified }}"
# operator: EQUALS
# value: false
mutate:
foreach:
- list: "response.results"
patchesJson6902: |-
- path: {{ element.path }}
op: replace
value: {{ element.image }}
validate:
message: "{{ response.message }}"
deny:
conditions:
all:
- key: "{{ response.verified }}"
operator: EQUALS
value: false
# mutate:
# foreach:
# - list: "response.results"
# patchesJson6902: |-
# - path: {{ element.path }}
# op: replace
# value: {{ element.image }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/aws/aws-sdk-go-v2/config v1.18.21
github.com/aws/aws-sdk-go-v2/service/ecr v1.18.7
github.com/google/go-containerregistry v0.14.0
github.com/nirmata/kyverno-notation-verifier v0.3.1
github.com/nirmata/kyverno-notation-verifier v0.3.2
github.com/notaryproject/notation-core-go v1.0.0-rc.4
github.com/pkg/errors v0.9.1
go.uber.org/zap v1.24.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/nirmata/kyverno-notation-verifier v0.3.1 h1:iiR8raD5wgVO+B2VZfiJ+YrzsMg4kZgpMhd/1kMaDh4=
github.com/nirmata/kyverno-notation-verifier v0.3.1/go.mod h1:NuW0wH4IKDVgjaZ+cn/EIPy6TjmdPlG7tzKY1+pQBvY=
github.com/nirmata/kyverno-notation-verifier v0.3.2 h1:Cl8P50Ygqm5kO3dmthDmRmaeaqwsNPseafTrqB9KcWk=
github.com/nirmata/kyverno-notation-verifier v0.3.2/go.mod h1:NuW0wH4IKDVgjaZ+cn/EIPy6TjmdPlG7tzKY1+pQBvY=
github.com/notaryproject/notation-core-go v1.0.0-rc.4 h1:gzo4JzKRMLGoOeOhPXxoudjL79Mi9X6flS8qJbRtZ+k=
github.com/notaryproject/notation-core-go v1.0.0-rc.4/go.mod h1:PEHrnhW0mEIVpyYdXqAJoJAaUgfz757tqxB3LG4qcag=
github.com/notaryproject/notation-go v1.0.0-rc.6 h1:Wu9PiCzf2v75iBsKanJTgd91jgvpTzMX5kvnKjximi4=
Expand Down

0 comments on commit ff79e28

Please sign in to comment.