1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-10 01:46:55 +00:00
kyverno/pkg/validation/policy
asr2003 8f418a90fc
fix: variable substitution error handling in policy validation (#10936)
* fix variable substitution error handling in policy validation and add tests

Signed-off-by: Ambati Sahithi <162500856+asr2003@users.noreply.github.com>

* cleanup

Signed-off-by: Ambati Sahithi <162500856+asr2003@users.noreply.github.com>

* fix variable substitution error handling in policy validation and add tests

Signed-off-by: Ambati Sahithi <162500856+asr2003@users.noreply.github.com>

* cleanup

Signed-off-by: Ambati Sahithi <162500856+asr2003@users.noreply.github.com>

* add review comment

Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: asr2003 <162500856+asr2003@users.noreply.github.com>

* Update pkg/validation/policy/validate.go

The rule and policy will be appended to the top level message, so no need to repeat here.

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

* fmt

Signed-off-by: Ambati Sahithi <162500856+asr2003@users.noreply.github.com>

* Update pkg/validation/policy/validate.go

update for unit tests

Signed-off-by: Jim Bugwadia <jim@nirmata.com>

---------

Signed-off-by: Ambati Sahithi <162500856+asr2003@users.noreply.github.com>
Signed-off-by: asr2003 <162500856+asr2003@users.noreply.github.com>
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2024-08-29 23:49:45 +00:00
..
actions.go remove wildcard permissions (#10785) 2024-08-20 11:55:32 +03:00
allowed_vars_test.go feat: support validatingadmissionpolicybindings in CLI apply command (#9468) 2024-01-23 11:47:38 +00:00
background.go fix(autogen): only generate rule for request kind (#9984) 2024-04-04 08:09:30 +00:00
background_test.go fix: generate policy validation to prevent endless loop (#7026) 2023-04-28 13:54:17 +00:00
fuzz_test.go remove wildcard permissions (#10785) 2024-08-20 11:55:32 +03:00
generate.go fix: reset mutable fields orphandownstream (#10478) 2024-06-25 09:24:35 +00:00
on_update_policy_test.go fix: generate policy validation to prevent endless loop (#7026) 2023-04-28 13:54:17 +00:00
validate.go fix: variable substitution error handling in policy validation (#10936) 2024-08-29 23:49:45 +00:00
validate_test.go fix: variable substitution error handling in policy validation (#10936) 2024-08-29 23:49:45 +00:00