1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 17:37:12 +00:00
kyverno/test/conformance/chainsaw/configs/emit-success-events-upon-generateSuccessEvents-set-true
Charles-Edouard Brétéché 5a0ce6bb67
chore: bump chainsaw (#11161)
* chore: bump chainsaw

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* more template use

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* v0.2.10

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

* go mod

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-09-17 09:28:33 +00:00
..
chainsaw-test.yaml chore: bump chainsaw (#11161) 2024-09-17 09:28:33 +00:00
kyverno-configmap-assert.yaml fix: Honour generateSuccessEvents config for generating success events (#9870) (#10741) 2024-09-04 10:25:34 +00:00
policy-assert.yaml fix: Honour generateSuccessEvents config for generating success events (#9870) (#10741) 2024-09-04 10:25:34 +00:00
policy.yaml fix: Honour generateSuccessEvents config for generating success events (#9870) (#10741) 2024-09-04 10:25:34 +00:00
README.md fix: Honour generateSuccessEvents config for generating success events (#9870) (#10741) 2024-09-04 10:25:34 +00:00
resource-assert.yaml fix: Honour generateSuccessEvents config for generating success events (#9870) (#10741) 2024-09-04 10:25:34 +00:00
resource.yaml fix: Honour generateSuccessEvents config for generating success events (#9870) (#10741) 2024-09-04 10:25:34 +00:00

Description

This test patches kyverno configmap in kyverno namespace with generateSuccessEvents set to true Then it creates a policy and a resource. The resource is expected to be accepted. A PolicyApplied event with message ConfigMap default/foo: pass from object policy/require-labels should be created as generateSuccessEvents config is set to true

Steps

  1. Patch kyverno configmap in kyverno namespace with generateSuccessEvents set to true
  2. Create a policy
  3. Assert the policy becomes ready
  4. Create a resource,
  5. Assert there is PolicyApplied event with message ConfigMap default/foo: pass is created via script
  6. Exit the script with code 1 if it returns an error