1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/test/conformance/chainsaw/events/clusterpolicy/generate-events-upon-fail-generation
shuting 01cc42e78a
fix: add auth check to the admission controller for generate policies (#10963)
* fix: add auth check to the admission controller for generate policies

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: enable auth check if sync=true

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: restict to list/get permissions

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: aggregate clusterrole to admission controller

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: aggregate clusterrole to admission controller

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: aggregate clusterrole to admission controller

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* fix: aggregate clusterrole to admission controller

Signed-off-by: ShutingZhao <shuting@nirmata.com>

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-09-04 11:26:24 +00:00
..
chainsaw-test.yaml fix: add auth check to the admission controller for generate policies (#10963) 2024-09-04 11:26:24 +00:00
crd-assert.yaml chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00
crd.yaml chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00
event.yaml chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00
permissions.yaml fix: add auth check to the admission controller for generate policies (#10963) 2024-09-04 11:26:24 +00:00
policy-assert.yaml chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00
policy.yaml chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00
README.md chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00
resource.yaml chore: run events test suite using chainsaw (#8951) 2023-11-22 16:58:32 +01:00

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

Reference Issue(s)

https://github.com/kyverno/kyverno/pull/8466 https://github.com/kyverno/kyverno/pull/1413