1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine/handlers/mutation
Ammar Yasser d61f87e0f9
Context vars with labelselector (#11608)
* refactor: Treat all of the target spec as a single object while replacing variables

Serialize it into a map string interface then back to a target seletor before returning

Signed-off-by: aerosouund <aerosound161@gmail.com>

* test: Add scenario for variables in the label selector test

Signed-off-by: aerosouund <aerosound161@gmail.com>

* Fix: Capitalize error message

Co-authored-by: shuting <shuting@nirmata.com>
Signed-off-by: Ammar Yasser <aerosound161@gmail.com>

* Fix: Adjust error message specification to mention target rather than selector

Co-authored-by: shuting <shuting@nirmata.com>
Signed-off-by: Ammar Yasser <aerosound161@gmail.com>

* fix: Pass the target selector only during variable replacement

Signed-off-by: aerosouund <aerosound161@gmail.com>

---------

Signed-off-by: aerosouund <aerosound161@gmail.com>
Signed-off-by: Ammar Yasser <aerosound161@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2024-11-20 10:36:55 +00:00
..
common.go feat: enable custom data in policy reports using properties (#10933) 2024-09-03 17:36:07 +00:00
load_targets.go Context vars with labelselector (#11608) 2024-11-20 10:36:55 +00:00
load_targets_test.go refactor: make use of handlers in engine validation (#6704) 2023-03-28 07:47:53 +02:00
mutate_existing.go feat: enable custom data in policy reports using properties (#10933) 2024-09-03 17:36:07 +00:00
mutate_image.go feat:Add support for condition validation across multiple image verification attestations or context entry (#9960) 2024-09-05 10:33:37 +00:00
mutate_resource.go feat: enable custom data in policy reports using properties (#10933) 2024-09-03 17:36:07 +00:00