mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +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 mutate policy which adds labels to the newly created config maps. An event is generated upon successful generation.
Steps
- Patch
kyverno
configmap inkyverno
namespace withgenerateSuccessEvents
set totrue
- Create a mutate policy Assert the policy becomes ready
- Create a configmap.
- An event is created with a message indicating that the config map is successfully mutated.