1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine/anchor
Vishal Choudhary 72524c792c
fix: update KeysAreMissing() to ignore negations in resource (#8953)
* fix: update KeysAreMissing() to ignore negations in resource

KeysAreMissing() checks if a key is missing in a resource, since a negation should not be present in the resource, it should not count as a missing key

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: add tests

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: pod is supposed to fail

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-11-22 09:06:40 +00:00
..
anchor.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
anchor_test.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
anchormap.go fix: update KeysAreMissing() to ignore negations in resource (#8953) 2023-11-22 09:06:40 +00:00
anchormap_test.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
error.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
error_test.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
fuzz_test.go feat: add fuzzers from cncf-fuzzing (#8027) 2023-08-16 16:42:37 +00:00
handlers.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
utils.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
utils_test.go Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00