1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-01-20 18:52:16 +00:00
kyverno/pkg/engine/context
D N Siva Sathyaseelan cc966bf7af
feat:support default value into apiCall context variables (#10594)
* initial changes

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

* test changes

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

* logical changes

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

* added Check for default in transformAndStore

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

* codegen applied

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

* considered an edge case

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

* fix: remove error when jsondata and default is nil

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

* codegen done

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>

---------

Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2024-09-05 13:57:44 +08:00
..
loaders feat:support default value into apiCall context variables (#10594) 2024-09-05 13:57:44 +08:00
resolvers chore: move cache enabled label (#7949) 2023-08-01 16:28:38 +00:00
context.go Deferred loading for image info in policy context (#10787) 2024-08-30 05:35:26 +00:00
context_test.go Deferred loading for image info in policy context (#10787) 2024-08-30 05:35:26 +00:00
deferred.go fix: return error in LoadMatching (#8234) 2023-09-04 22:42:27 +00:00
deferred_test.go fix: deferred loader panic when mutate and generate policies are applied (#9935) 2024-03-29 14:37:15 +01:00
evaluate.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
evaluate_test.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
fuzz_test.go Refactor fuzzing utils and add 3 fuzzers (#8555) 2023-10-05 16:33:26 +00:00
loader.go Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
mock_context.go optimize JSON context processing using in-memory maps (#8322) 2023-12-04 07:35:36 +00:00
mock_deferred.go fix: deferred loader panic when mutate and generate policies are applied (#9935) 2024-03-29 14:37:15 +01:00
utils.go fix(json-ctx): overwrite element each iteration (#10615) 2024-07-05 15:06:48 +00:00
utils_test.go fix(json-ctx): overwrite element each iteration (#10615) 2024-07-05 15:06:48 +00:00