mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 17:37:12 +00:00
* feat: use more chainsaw test templates Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * fix Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> |
||
---|---|---|
.. | ||
chainsaw-test.yaml | ||
event-assert.yaml | ||
kyverno-configmap-assert.yaml | ||
policy.yaml | ||
README.md | ||
resource.yaml |
Description
This test creates a policy, and a resource.
A PolicyApplied
event should be created.
Steps
- Patch
kyverno
configmap inkyverno
namespace withgenerateSuccessEvents
set totrue
- Create a policy
- Assert the policy becomes ready
- Create a resource
- Assert a
PolicyApplied
event is created