1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/engine
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
..
adapters fix: cache invalidation in FindResources (#8316) 2023-09-08 15:51:25 +02:00
anchor fix: update KeysAreMissing() to ignore negations in resource (#8953) 2023-11-22 09:06:40 +00:00
api Reduce deps (#8654) 2023-11-09 13:04:24 +00:00
apicall feat: add checks for max response size in API Call (#8957) 2023-11-21 10:01:51 +00:00
context feat: add checks for max response size in API Call (#8957) 2023-11-21 10:01:51 +00:00
factories feat: add checks for max response size in API Call (#8957) 2023-11-21 10:01:51 +00:00
handlers feat: compute policy exceptions as a part of the rule execution (#8713) 2023-11-13 15:43:25 +00:00
internal chore: move utils/wildcard in ext (#8772) 2023-10-29 23:59:53 +00:00
jmespath feat: Add external_url_check custom JMESPath function (#8614) 2023-11-21 04:17:26 +00:00
jsonutils fix: use go 1.21 new packages (#8452) 2023-09-19 12:06:53 +00:00
mutate feat: switch json patch lib for real (#7452) 2023-06-08 10:23:20 +00:00
operator fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
pattern chore: move utils/wildcard in ext (#8772) 2023-10-29 23:59:53 +00:00
policycontext Changes to correctly run delete operation in kyverno11beta4 (#8786) 2023-11-02 08:25:46 -04:00
resources refactor: introduce engine handler (#6680) 2023-03-24 16:24:00 +00:00
utils feat: compute policy exceptions as a part of the rule execution (#8713) 2023-11-13 15:43:25 +00:00
validate update k8s.gcr.io to registry.k8s.io (#6340) 2023-02-20 13:40:12 +00:00
variables fix: use ungreedy pattern to process all variables (#8311) 2023-11-14 13:23:28 +00:00
wildcards chore: move utils/wildcard in ext (#8772) 2023-10-29 23:59:53 +00:00
attestation_test.go Conditions message (#7113) 2023-05-08 15:34:23 +08:00
background.go feat: compute policy exceptions as a part of the rule execution (#8713) 2023-11-13 15:43:25 +00:00
engine.go feat: compute policy exceptions as a part of the rule execution (#8713) 2023-11-13 15:43:25 +00:00
exceptions.go feat: compute policy exceptions as a part of the rule execution (#8713) 2023-11-13 15:43:25 +00:00
forceMutate.go refactor: remove json patches from engine response (#7449) 2023-06-07 17:45:11 +08:00
forceMutate_test.go refactor: introduce jmespath interface (#6882) 2023-04-13 11:29:40 +00:00
fuzz_test.go Refactor fuzzing utils and add 3 fuzzers (#8555) 2023-10-05 16:33:26 +00:00
generation.go refactor: don't process context/preconditions in invokeHandler (#6751) 2023-04-03 12:57:48 +08:00
image_verify.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
image_verify_test.go feat: improve assertion and error messages (#8489) 2023-09-21 12:39:54 +00:00
metrics.go Add an abstraction interface for Kyverno policies and validating admission policies (#8016) 2023-08-15 12:41:43 -07:00
mutation.go refactor: policy response (#6877) 2023-04-12 16:20:42 +00:00
mutation_test.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
policy_context.go refactor: hide json context from caller (#7139) 2023-05-12 14:14:48 +00:00
validation.go feat: support cel expression in validate rules (#7070) 2023-05-31 14:30:55 -07:00
validation_test.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00