1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/controllers
Shivam Kumar 48b7a68733
Added propagationPolicy to TTL controller for resource deletion (#11207)
* Added propagationPolicy to TTL controller for resource deletion

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Added per-resource deletion policy with optional global default

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Fix: Added nil check for annotations to prevent runtime errors

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Fix: Moved logic for retrieving propagation policy from annotations to a dedicated function

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Fix: Resolve merge conflict in controller.go and update propagation policy handling
- Added missing gvr field from main branch
- Improved annotation naming as per team discussion
- Moved propagation policy logic closer to usage

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Simplified propagation policy logic

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Add unit tests for controller.go

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

* Removed the test file for controller.go and fixed the lint error

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>

---------

Signed-off-by: ShivamJha2436 <shivamkumar87148@gmail.com>
2024-09-27 14:45:09 +00:00
..
certmanager feat: bump to k8s 1.31 (#10938) 2024-08-28 17:09:58 +00:00
cleanup feat: bump to k8s 1.31 (#10938) 2024-08-28 17:09:58 +00:00
exceptions feat: bump to k8s 1.31 (#10938) 2024-08-28 17:09:58 +00:00
generic fix: make webhook cleanup setup optional and add cleanup ci test (#11077) 2024-09-11 08:38:45 +02:00
globalcontext feat: bump to k8s 1.31 (#10938) 2024-08-28 17:09:58 +00:00
metrics/policy fix: return policies with either audit or enforce rules from the cache (#10667) 2024-08-06 18:24:28 +00:00
policycache feat: bump to k8s 1.31 (#10938) 2024-08-28 17:09:58 +00:00
report chore: remove v1alpha1 of VAPs and use v1beta1 (#10955) 2024-08-29 15:31:25 +00:00
ttl Added propagationPolicy to TTL controller for resource deletion (#11207) 2024-09-27 14:45:09 +00:00
validatingadmissionpolicy-generate chore: remove v1alpha1 of VAPs and use v1beta1 (#10955) 2024-08-29 15:31:25 +00:00
webhook fix: webhooks reconciliation with policies (#11233) 2024-09-25 12:12:08 +00:00
controller.go fix: add workers to the controller interface (#4776) 2022-10-03 07:55:59 +00:00