1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 01:54:18 +00:00
kyverno/pkg/engine
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
..
anchor Patch strategic merge preprocessing: implement anchor handling (#2156) 2021-07-23 10:53:37 -07:00
common Fix #1506; Resolve path reference in entire rule instead of just pattern/overlay 2021-03-16 13:45:40 +02:00
context add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00
jmespath Add function label_match, to use matchLabel in JMESPath, usage: label_match(labels_from_network_policy, labels_from pod) bool, Remove validation for JMESPath (#1862) 2021-05-04 09:28:30 -07:00
json-utils Fix #1506; Resolve path reference in entire rule instead of just pattern/overlay 2021-03-16 13:45:40 +02:00
mutate Patch strategic merge preprocessing: implement anchor handling (#2156) 2021-07-23 10:53:37 -07:00
operator fix gofmt and golint issues (#667) 2020-02-03 13:38:24 -08:00
response Feature/cosign (#2078) 2021-07-09 18:01:46 -07:00
utils fmt and improve error messages 2021-07-20 20:28:11 -07:00
validate Patch strategic merge preprocessing: implement anchor handling (#2156) 2021-07-23 10:53:37 -07:00
variables add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00
wildcards updating minio verison (#1956) 2021-06-09 19:16:26 -07:00
apiPath.go Set Version to Group/Version for /apis/* URLs 2021-03-06 00:22:12 -05:00
apiPath_test.go Add unit test 2021-03-08 22:56:14 -05:00
forceMutate.go Patch strategic merge preprocessing: implement anchor handling (#2156) 2021-07-23 10:53:37 -07:00
forceMutate_test.go Patch strategic merge preprocessing: implement anchor handling (#2156) 2021-07-23 10:53:37 -07:00
generation.go add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00
imageVerify.go check for changes 2021-07-20 09:36:12 -07:00
jsonContext.go Changed error to info for NotFoundError in jsonContext (#2140) 2021-07-14 14:50:28 -07:00
jsonContext_test.go feat: added functionality for delimiting multi-line block by newline characters 2021-03-01 00:46:50 +05:30
mutation.go add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00
mutation_test.go update JSON context with patched resource for chained mutate rules 2021-07-22 14:23:03 -07:00
policyContext.go namespace selector (#1532) 2021-02-03 13:09:42 -08:00
utils.go Apply pod's rules if the owner is not k8s pod-controllers (#2107) 2021-07-09 14:44:38 +05:30
utils_test.go Apply pod's rules if the owner is not k8s pod-controllers (#2107) 2021-07-09 14:44:38 +05:30
validation.go add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00
validation_test.go add special variable substitution logic for preconditions (#1930) 2021-07-28 09:54:50 -07:00