1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
kyverno/pkg/engine/context
Max Goncharenko 903963c26d
add special variable substitution logic for preconditions (#1930)
* add special variable substitution logic for preconditions

Signed-off-by: Max Goncharenko <kacejot@fex.net>

* handle NotFoundVariable error in proper way

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* remove excess log; fix grammar

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* removed isPrecondition flag; added test case for empty deny string; fixed related issue

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* fix test case

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* fix go lint

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>

* fix tests

Signed-off-by: Maxim Goncharenko <goncharenko.maxim@apriorit.com>
2021-07-28 09:54:50 -07:00
..
context.go Resolving variables from the resource passed | CLI (#2180) 2021-07-23 11:32:48 -07:00
context_test.go update validation logic 2020-12-23 15:10:07 -08:00
evaluate.go add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00
evaluate_test.go check for changes 2021-07-20 09:36:12 -07:00
imageutils.go update JSON context with patched resource for chained mutate rules 2021-07-22 14:23:03 -07:00
imageutils_test.go check for changes 2021-07-20 09:36:12 -07:00