1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-05 23:46:56 +00:00
kyverno/pkg/webhooks
gcp-cherry-pick-bot[bot] 53fa22bc74
fix: block mutation only when failurePolicy is set to fail (#8952) (#8986)
* fix: only block mutation when failurePolicy is set
to fail



* feat: kuttl test



* fix: add else check



* fix: update defaulting ns label policy's failure policy to be fail

based on readme, this test has nothing to do with failurePolicy and resource should not be blocked in case of ignore failurePolicy



* fix: there is another



* fix: update policy



* nit



* feat: add logs



* Update pkg/webhooks/resource/mutation/mutation.go



---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Signed-off-by: shuting <shuting@nirmata.com>
Co-authored-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: shuting <shutting06@gmail.com>
2023-11-22 17:30:15 +00:00
..
exception refactor: remove more admission request pointers (#6774) 2023-04-04 13:11:18 +08:00
handlers Reduced verbosity of admission request filter INFO log message (#8712) (#8882) 2023-11-13 14:04:54 +08:00
policy refactor: remove openapi package (#8538) (#8547) 2023-09-27 17:25:20 +00:00
resource fix: block mutation only when failurePolicy is set to fail (#8952) (#8986) 2023-11-22 17:30:15 +00:00
updaterequest chore: cleanup generate codebase (#6598) 2023-03-17 08:36:06 +00:00
utils fix: allow mutation of policy reports (#8080) 2023-08-22 09:44:25 +00:00
log.go add package logger in files (#4766) 2022-10-02 19:45:03 +00:00
server.go fix: context propagation in tracing (#8104) 2023-08-24 14:45:58 +08:00