1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 09:56:55 +00:00
kyverno/test/conformance/chainsaw/validating-admission-policy-reports/background/with-validating-admission-policy-binding-pass
gcp-cherry-pick-bot[bot] 1e46816e00
chore: bump chainsaw (#11161) (#11177)
* chore: bump chainsaw



* more template use



* v0.2.10



* go mod



---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-09-17 10:09:15 +00:00
..
chainsaw-test.yaml chore: bump chainsaw (#11161) (#11177) 2024-09-17 10:09:15 +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 chore: remove v1alpha1 of VAPs and use v1beta1 (#10955) 2024-08-29 15:31:25 +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.