1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine
Dmitry Chirikov c845c0dc02
fix: do not pass dynamicConfig to matchesResourceDescriptionMatchHelper (#6231) (#6242) (#6331)
* fix: do not pass dynamicConfig to matchesResourceDescriptionMatchHelper (#6231)

(and only pass it to call for the exclude part of the rule)



* chore: add unit tests to cover the fix, and to ensure the exclude behavior still works (#6231)



---------

Signed-off-by: Ray Burgemeestre <rayb@nvidia.com>
Co-authored-by: Ray Burgemeestre <ray.burgemeestre@gmail.com>
Co-authored-by: Ray Burgemeestre <rayb@nvidia.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-05-06 14:16:33 +00:00
..
anchor add package logger in files (#4766) 2022-10-02 19:45:03 +00:00
common refactor: move utils into sub packages (#5828) (#5845) 2023-01-03 10:14:17 +00:00
context Nested foreach (#5589) 2022-12-12 15:20:20 +00:00
jmespath fix: jp divide quantities (#6229) (#6232) 2023-02-06 13:19:05 +00:00
jsonutils refactor: move util funcs in sub packages (#5754) 2022-12-22 06:39:54 +00:00
mutate fix mutate targets variable (#5862) (#5866) 2023-01-04 12:13:00 +00:00
operator chore: enable gofmt and gofumpt linters (#3931) 2022-05-17 06:19:03 +00:00
resources Yaml signing and verification (#4235) 2022-08-30 10:14:54 -07:00
response feat: propagate psa checks results (#5719) 2022-12-20 05:57:23 +00:00
utils chore: move ConvertToUnstructured from engine utils to kube utils (#5847) (#5863) 2023-01-04 09:07:24 +00:00
validate Nested foreach (#5589) 2022-12-12 15:20:20 +00:00
variables fix: error log (#6429) (#6437) 2023-03-01 09:59:38 +00:00
wildcards Nested foreach (#5589) 2022-12-12 15:20:20 +00:00
attestation_test.go Nested foreach (#5589) 2022-12-12 15:20:20 +00:00
background.go fix: Add subresources support to policy exceptions (#5839) (#5880) 2023-01-05 07:01:04 +00:00
common.go feat: add support for subresources to validating and mutating policies (#4916) 2022-12-10 00:45:23 +08:00
common_test.go feat: add support for subresources to validating and mutating policies (#4916) 2022-12-10 00:45:23 +08:00
forceMutate.go use camel case for ForEach naming (#5660) 2022-12-12 19:24:13 +00:00
forceMutate_test.go chore: move ConvertToUnstructured from engine utils to kube utils (#5847) (#5863) 2023-01-04 09:07:24 +00:00
generation.go refactor: registry client (#5596) 2022-12-07 23:08:37 +08:00
imageVerify.go fix imageRef matching (#5956) (#5957) 2023-01-10 19:02:15 +08:00
imageVerify_test.go chore: move ConvertToUnstructured from engine utils to kube utils (#5847) (#5863) 2023-01-04 09:07:24 +00:00
imageVerifyMetadata.go chore: enable gofmt and gofumpt linters (#3931) 2022-05-17 06:19:03 +00:00
imageVerifyValidate.go feat: add support for subresources to validating and mutating policies (#4916) 2022-12-10 00:45:23 +08:00
jsonContext.go use camel case for ForEach naming (#5660) 2022-12-12 19:24:13 +00:00
k8smanifest.go refactor: auth package and add full unit test coverage (#5749) 2022-12-22 13:24:37 +08:00
k8smanifest_test.go refactor: make policy context immutable and fields private (#5523) 2022-12-02 16:14:23 +08:00
loadtargets.go feat: add support for subresources to validating and mutating policies (#4916) 2022-12-10 00:45:23 +08:00
loadtargets_test.go Load mutate.targets via dclient (#3797) 2022-05-06 05:46:36 +00:00
mutation.go fix: Add subresources support to policy exceptions (#5839) (#5880) 2023-01-05 07:01:04 +00:00
mutation_test.go chore: move ConvertToUnstructured from engine utils to kube utils (#5847) (#5863) 2023-01-04 09:07:24 +00:00
policyContext.go Cherry-pick #6126 (#6228) 2023-02-06 08:58:48 +01:00
utils.go fix: do not pass dynamicConfig to matchesResourceDescriptionMatchHelper (#6231) (#6242) (#6331) 2023-05-06 14:16:33 +00:00
utils_test.go fix: do not pass dynamicConfig to matchesResourceDescriptionMatchHelper (#6231) (#6242) (#6331) 2023-05-06 14:16:33 +00:00
validation.go fix: policy exceptions not working in background mode (#5980) (#6003) 2023-01-16 12:53:37 +08:00
validation_test.go chore: move ConvertToUnstructured from engine utils to kube utils (#5847) (#5863) 2023-01-04 09:07:24 +00:00