mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-07 00:17:13 +00:00
|
||
---|---|---|
.. | ||
01-crd.yaml | ||
02-policy.yaml | ||
03-resource.yaml | ||
04-sleep.yaml | ||
05-event.yaml | ||
crd-assert.yaml | ||
crd.yaml | ||
event.yaml | ||
policy-assert.yaml | ||
policy.yaml | ||
README.md | ||
resource.yaml |
Description
This test creates a generate policy, and a resource. A PolicyError
event should be created upon the failure.
Steps
-
- Create a policy
- Assert the policy becomes ready
-
- Create a resource
-
- Asset a
PolicyError
event is created
- Asset a
Reference Issue(s)
https://github.com/kyverno/kyverno/pull/8466 https://github.com/kyverno/kyverno/pull/1413