1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/test/conformance/chainsaw/validating-admission-policy-reports/background/with-validating-admission-policy-binding-pass
Mariam Fahmy 4c950dcb32
feat: use v1 of ValidatingAdmissionPolicies (#12050)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2025-01-31 14:21:43 +00:00
..
chainsaw-test.yaml chore: bump chainsaw (#11161) 2024-09-17 09:28:33 +00:00
deployment-assert.yaml feat: support vap bindings in reports (#9506) 2024-01-29 12:49:17 +01:00
deployment.yaml feat: support vap bindings in reports (#9506) 2024-01-29 12:49:17 +01:00
ns.yaml feat: support vap bindings in reports (#9506) 2024-01-29 12:49:17 +01:00
policy.yaml feat: use v1 of ValidatingAdmissionPolicies (#12050) 2025-01-31 14:21:43 +00:00
README.md feat: support vap bindings in reports (#9506) 2024-01-29 12:49:17 +01:00
report-assert.yaml feat: support vap bindings in reports (#9506) 2024-01-29 12:49:17 +01:00

Description

This test checks that policy reports are generated successfully as a result of applying the ValidatingAdmissionPolicy with its binding to a resource.

Steps

    • Create a staging-ns-1 namespace whose label is environment: staging-ns-1
    • Create a Deployment named deployment-4 with 3 replicas in the staging-ns-1 namespace.
    • Create a ValidatingAdmissionPolicy that checks deployment replicas to be less than or equal to 5.
    • Create a ValidatingAdmissionPolicyBinding that matches resources whose namespace has a label of environment: staging.
    • A policy report is generated for deployment-4 with a pass result.