Shuting Zhao
|
546a25d025
|
add missing file
|
2019-11-11 21:06:09 -08:00 |
|
Shuting Zhao
|
85d04f609c
|
remove overlay failure conditionNotPresent as it allows the tag not present
|
2019-11-11 21:03:34 -08:00 |
|
Shuting Zhao
|
5a3ed62b13
|
Merge branch 'master' into 345_support_usergroup_info
# Conflicts:
# pkg/engine/validation_test.go
# pkg/webhooks/annotations.go
# pkg/webhooks/annotations_test.go
# pkg/webhooks/mutation.go
# pkg/webhooks/server.go
# pkg/webhooks/validation.go
|
2019-11-11 19:19:08 -08:00 |
|
Shuting Zhao
|
6c8f4f90da
|
fix patches annotation
|
2019-11-11 18:52:26 -08:00 |
|
Shuting Zhao
|
4a80f70957
|
add unit test
|
2019-11-11 14:29:36 -08:00 |
|
Shuting Zhao
|
5b0a6d62a4
|
add unit test
|
2019-11-11 09:56:53 -08:00 |
|
Shuting Zhao
|
981b378c86
|
match rbac info when process a rule
|
2019-11-08 18:58:09 -08:00 |
|
Shuting Zhao
|
6048d59949
|
change engine interface to take policyContext struct
|
2019-11-08 18:57:27 -08:00 |
|
Shuting Zhao
|
ec331b8d17
|
remove resource info in the validation error
|
2019-11-07 12:30:58 -08:00 |
|
Shuting Zhao
|
a30b8a604d
|
update format
|
2019-11-07 12:13:35 -08:00 |
|
Shuting Zhao
|
443619757e
|
update tests/scenario
|
2019-11-07 12:13:35 -08:00 |
|
Shuting Zhao
|
15895d3852
|
- aggregate resource info per rule; - remove resource info in each success message;
|
2019-11-07 12:13:35 -08:00 |
|
Shuting Zhao
|
98fa90bf1e
|
update validation_test.go
|
2019-11-07 12:13:34 -08:00 |
|
Shuting Zhao
|
de9ebd899b
|
improve validation error message; update scenario files
|
2019-11-07 12:13:34 -08:00 |
|
Shuting Zhao
|
8496a483dc
|
- remove resource info per rule; - add resource info in each failed admission request
|
2019-11-06 17:14:32 -08:00 |
|
Shuting Zhao
|
4daa23f530
|
add missing file
|
2019-11-06 16:40:24 -08:00 |
|
Shuting Zhao
|
b32c6bf50b
|
remove unused code
|
2019-11-06 16:16:50 -08:00 |
|
Shuting Zhao
|
d31ace604e
|
fix test
|
2019-11-06 16:16:38 -08:00 |
|
Shuting Zhao
|
a7aec886b4
|
handle processOverlay with overlayError
|
2019-11-06 16:16:29 -08:00 |
|
Shuting Zhao
|
d0391ecab3
|
make the err "resource field is not present" a constant
|
2019-11-05 16:36:15 -08:00 |
|
Shuting Zhao
|
9f7b6eaaf6
|
skip applying mutate rule if condition key is not present in the resource, consider the rule as success
|
2019-11-05 16:27:06 -08:00 |
|
Shuting Zhao
|
664a85363a
|
correct scenario test
|
2019-11-05 12:59:22 -08:00 |
|
Shuting Zhao
|
662f649926
|
add comment to the code
|
2019-11-05 11:04:43 -08:00 |
|
Shuting Zhao
|
489e55d6c3
|
add best_practices scenario_mutate_safe-to-evict
|
2019-11-05 10:16:07 -08:00 |
|
Shuting Zhao
|
3fbb9f8a35
|
Merge commit 'cfbd2120938b8a7f81f4a9c325fa3f6e816d2bf1' into 158_array_validation
|
2019-11-05 09:43:28 -08:00 |
|
Shuting Zhao
|
d9335a5f8c
|
add warning message; remove existence anchor check in mutation
|
2019-11-04 19:23:48 -08:00 |
|
Shivkumar Dudhani
|
cfbd212093
|
Merge pull request #427 from nirmata/375_handle_json_numbers_resubmit
375 handle json numbers resubmit
|
2019-11-04 18:05:24 -08:00 |
|
shivkumar dudhani
|
a191bd67f4
|
update message string
|
2019-11-01 15:21:23 -07:00 |
|
Shuting Zhao
|
86c00a8f30
|
return failure path for mutate condition check
|
2019-11-01 11:14:58 -07:00 |
|
Shuting Zhao
|
ef8bf695b1
|
mutate: support anchor on map/array
|
2019-10-31 20:38:24 -07:00 |
|
shivkumar dudhani
|
7e7286a9c1
|
support string - numbers comparison, use validatepattern in generate for subset check
|
2019-10-31 13:29:03 -07:00 |
|
Shivkumar Dudhani
|
92c96aaf1f
|
Revert "use validatepattern in generate rule to check for subset existance"
|
2019-10-31 13:21:38 -07:00 |
|
shivkumar dudhani
|
61c1ea5a49
|
use validatepattern in generate rule to check for subset existance
|
2019-10-31 13:04:56 -07:00 |
|
Shuting Zhao
|
6e69c8b69b
|
cleanup pv with dependant when blocked admission request pass
|
2019-10-23 23:18:58 -07:00 |
|
Shuting Zhao
|
f820cb4c83
|
implement #387 Generate clusterpolicyviolation when policy action set to "enforce"
|
2019-10-21 15:55:20 -07:00 |
|
shivkumar dudhani
|
3fa8834b4a
|
policy validation: refactoring
|
2019-10-21 14:22:31 -07:00 |
|
Shuting Zhao
|
68c87a09ec
|
add unit test for negationanchor on mutation
|
2019-10-18 18:17:11 -07:00 |
|
Shuting Zhao
|
2e1b731e35
|
fix test error
|
2019-10-18 17:50:26 -07:00 |
|
Shuting Zhao
|
32f94bca27
|
manage policy validation inside engine pkg
|
2019-10-18 17:45:24 -07:00 |
|
shivkumar dudhani
|
fd72ee3178
|
add unit tests
|
2019-10-10 17:34:20 -07:00 |
|
shivkumar dudhani
|
f6367cfe4a
|
add negation anchor
|
2019-10-10 16:59:08 -07:00 |
|
shivkumar dudhani
|
70ff2fa177
|
update engineResponse Name
|
2019-10-08 10:57:24 -07:00 |
|
shivkumar dudhani
|
c4e263564f
|
CR: uncomment deadcode
|
2019-10-01 16:59:26 -07:00 |
|
shivkumar dudhani
|
7782c776f1
|
merge with master
|
2019-10-01 16:28:54 -07:00 |
|
shivkumar dudhani
|
515a31199e
|
update equality operator
|
2019-10-01 13:08:34 -07:00 |
|
shivkumar dudhani
|
17d80a08c0
|
introduce equality anchor
|
2019-10-01 12:35:14 -07:00 |
|
shivkumar dudhani
|
56b2d2990b
|
clean up
|
2019-09-28 14:20:39 -07:00 |
|
shivkumar dudhani
|
808cccb421
|
update validation logic
|
2019-09-28 14:09:46 -07:00 |
|
Shuting Zhao
|
a72a73b8a9
|
fix warning
|
2019-09-27 16:35:09 -07:00 |
|
shivkumar dudhani
|
ae3059b858
|
unit test initial check
|
2019-09-26 11:00:30 -07:00 |
|