1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00
kyverno/test
gcp-cherry-pick-bot[bot] d3d0eb354f
fix: allow changes to preexisting resource in violation of a policy in Enforce (#9027) (#9139)
* fix: allow changes to preexisting resource in violation of a policy in Enforce



* fix: missing error check



* fix: tests



* nit: cleanup



* fix



* fix: update old policy context



* fix: preconditions always retured true

internal.CheckPreconditions always returned true when v.anyAllConditions, it should be populated with rule.RawAnyAllConditions when newValidator() is used to create a validator



* fix: fix chainsaw test



* fix: nit



* debug



* feat: update test



* fix: add namespace



* feat: add test for bad to good conversion



* feat: add test step



---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-12 09:54:45 +00:00
..
best_practices chore: apply policy fixes (#8427) 2023-09-17 22:24:26 +00:00
cli Changes to correctly run delete operation in kyverno11beta4 (#8786) (#8820) 2023-11-02 21:31:23 +08:00
conformance fix: allow changes to preexisting resource in violation of a policy in Enforce (#9027) (#9139) 2023-12-12 09:54:45 +00:00
fuzz Refactor fuzzing utils and add 3 fuzzers (#8555) (#8586) 2023-10-06 08:00:13 +08:00
more chore: apply policy fixes (#8427) 2023-09-17 22:24:26 +00:00
openshift fix: allow policies from stdin in apply again (#5668) 2022-12-16 13:50:15 +00:00
output move from k8s.gcr.io to registry.k8s.io (#6263) 2023-02-09 00:09:15 +08:00
policy chore: fix policies (#8449) 2023-09-19 10:28:58 +00:00
resources Migrated scenario based tests to CLI (#8055) 2023-08-23 15:55:39 +00:00