1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-12 10:56:54 +00:00
kyverno/test/conformance/kuttl/events/clusterpolicy/generate-events-upon-successful-generation
..
01-policy.yaml
02-resource.yaml
03-sleep.yaml
04-event.yaml
policy-assert.yaml
policy-event.yaml
policy.yaml
README.md
resource-event.yaml
resource.yaml

Description

This test creates a generate policy, and the trigger resource (namespace). Two events are generated:

  1. An event for the policy to indicate that a new resource is generated.
  2. An event for the generated resource itself.

Steps

    • Create a generate policy
    • Assert the policy becomes ready
  1. Create the namespace.
    • An event is created for the policy with message "resource generated"
    • An event is created for the generated resource.