1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-29 19:05:27 +00:00
kyverno/pkg
Shivam Kumar 48b7a68733
Added propagationPolicy to TTL controller for resource deletion ()
* 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
..
auth fix: add the resource name to the SubjectAccessReview () 2024-08-07 12:46:44 +00:00
autogen fix: policy status updates not stabilising () 2024-09-25 13:44:39 +00:00
background feat: foreach support for clone () 2024-08-29 11:59:22 +00:00
breaker rename package: d4f --> breaker () 2024-08-15 10:53:20 +00:00
client support HTTP headers in service API calls () 2024-09-09 21:04:08 +00:00
clients feat: bump to k8s 1.31 () 2024-08-28 17:09:58 +00:00
config fix: webhooks reconciliation with policies () 2024-09-25 12:12:08 +00:00
controllers Added propagationPolicy to TTL controller for resource deletion () 2024-09-27 14:45:09 +00:00
cosign fix: expect base64 string in raw tuf root () 2024-09-12 12:34:52 +00:00
engine fix: foreach list validation () 2024-09-26 08:49:35 +00:00
event chore: remove v1alpha1 of VAPs and use v1beta1 () 2024-08-29 15:31:25 +00:00
exceptions chore: use v2 clients for policy exceptions () 2024-06-24 16:36:55 +00:00
globalcontext fix(status): status comparison is wrong () 2024-09-24 15:17:38 +00:00
images feat: add support for sigstore bundle verification () 2024-08-16 11:36:48 +00:00
imageverifycache fix: properly use useCache field in image verification policies () 2024-08-19 14:26:07 +00:00
informers feat: delete webhook configurations after kyverno is uninstalled () 2024-09-04 10:59:59 +00:00
leaderelection Remove dependency on github.com/pkg/errors () 2023-02-01 14:38:04 +08:00
logging chore(log): add caller () 2024-08-16 14:08:55 +00:00
metrics chore: pin go.opentelemetry.io/otel/semconv/v1.24.0 () 2024-09-27 16:39:55 +05:30
notary feat: fix notary tests () 2024-07-02 14:18:29 +00:00
policy feat: allow generate pattern changes () 2024-09-24 14:11:14 +00:00
policycache feat: use pointer in rule (mutation field) () 2024-09-11 04:32:10 +03:00
profiling refactor: introduce cmd internal package () 2022-11-18 22:21:15 +08:00
pss fix: concurrent map read and map write when applying a validate.podSecurity rule () 2024-09-04 17:05:10 +00:00
registryclient fix: use gcr crane opts while fetching image descriptors () 2024-03-04 08:14:00 +00:00
tls chore: set cert renewal time to 15 days before expiration () 2023-12-06 13:37:01 +00:00
toggle feat: add dumpPatch flag () 2024-09-25 13:11:43 +00:00
tracing chore: pin go.opentelemetry.io/otel/semconv/v1.24.0 () 2024-09-27 16:39:55 +05:30
userinfo refactor: reduce userinfos deps and add unit tests () 2023-03-10 09:09:19 +00:00
utils fix(status): status comparison is wrong () 2024-09-24 15:17:38 +00:00
validatingadmissionpolicy feat: use pointer in rule (exclude field) () 2024-09-10 11:14:49 +00:00
validation feat: allow generate pattern changes () 2024-09-24 14:11:14 +00:00
version fix: use golang builtin version management () 2023-06-30 23:27:06 +00:00
webhooks feat: add dumpPatch flag () 2024-09-25 13:11:43 +00:00