1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-11 18:37:16 +00:00
kyverno/test/conformance/kuttl/background-only/policy/no-admission-event
Mariam Fahmy a60dc00392
feat: migrate to events.k8s.io/v1 (#7673)
* feat: migrate events to events.k8s.io group

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix: kuttl event tests

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* migrate background events to events.k8s.io

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* update kuttl tests

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* remove ResourceSkipped from actions

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

---------

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-07-26 14:06:51 +00:00
..
01-policy.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
02-resource.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
03-event.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
admission-event.yaml feat: migrate to events.k8s.io/v1 (#7673) 2023-07-26 14:06:51 +00:00
background-event.yaml feat: migrate to events.k8s.io/v1 (#7673) 2023-07-26 14:06:51 +00:00
policy-assert.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
policy.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
README.md test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00
resource.yaml test: add kuttl tests for background only policies (#7709) 2023-06-29 20:53:23 +08:00

Description

This test creates a policy with admission set to false. Then it creates a resource that violates the policy.

Expected Behavior

The resource creates fine as the policy doesn't apply at admission time. No admission ezvent is created. One background event is created.