Shuting Zhao
|
5a44ab3e16
|
generate violation in validate when substitute path not present
|
2020-01-09 17:44:11 -08:00 |
|
Shuting Zhao
|
472fa29fce
|
move mutation to subpackage pkg/engine/mutate
|
2020-01-07 17:06:17 -08:00 |
|
Shivkumar Dudhani
|
5b8ab3842b
|
Support variable substitution (#549)
* initial commit
* variable substitution
* update tests
* update test
* refactor engine packages for validate & generate
* update vendor
* update toml
* support variable substitution in overlay mutation
* missing update
* fix indentation in logs
* store context values as single JSON document using merge patches.
* remove duplicate functions
* fix message string
* Handle processing of policies in background (#569)
* remove condition check while generating mutation patch as conditions are verified in the first iteration
* initial commit
* background policy validation
* correct message
* skip non-background policy process for add/update
* fix order to correct policy registration
* update comment
Co-authored-by: shuting <shutting06@gmail.com>
* refactor
Co-authored-by: shuting <shutting06@gmail.com>
|
2019-12-30 17:08:50 -08:00 |
|
Shivkumar Dudhani
|
ffe3bdb677
|
remove newline from engine response strings (#537)
* remove newline from engine response strings
* add scenario file updates
* cr: remove . in trailing msg string
|
2019-12-04 18:04:42 -08:00 |
|
shuting
|
ded0183aa2
|
Merge pull request #478 from nirmata/472_update_apiversion
472 update apiversion
|
2019-11-13 15:19:27 -08:00 |
|
Shuting Zhao
|
eab9609c6a
|
update api in tests
|
2019-11-13 13:56:07 -08:00 |
|
Shuting Zhao
|
b67577994a
|
update apiversion to v1 in code
|
2019-11-13 13:41:08 -08:00 |
|
Shivkumar Dudhani
|
7a12e12cb5
|
skip validation if the resource updates dont violate policy rules (#477)
|
2019-11-13 13:13:07 -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
|
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
|
98fa90bf1e
|
update validation_test.go
|
2019-11-07 12:13:34 -08:00 |
|
shivkumar dudhani
|
a191bd67f4
|
update message string
|
2019-11-01 15:21:23 -07:00 |
|
shivkumar dudhani
|
fd72ee3178
|
add unit tests
|
2019-10-10 17:34:20 -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
|
808cccb421
|
update validation logic
|
2019-09-28 14:09:46 -07:00 |
|
shivkumar dudhani
|
ae3059b858
|
unit test initial check
|
2019-09-26 11:00:30 -07:00 |
|
shivkumar dudhani
|
087efffd96
|
support existance on list type
|
2019-09-25 21:01:45 -07:00 |
|
shivkumar dudhani
|
c65f12b97b
|
initial commit
|
2019-09-25 15:12:33 -07:00 |
|
shivkumar dudhani
|
5dab189743
|
fix event resource name + add filtered kinds to policy controller & namespace + fix messages
|
2019-09-12 15:04:35 -07:00 |
|
Shuting Zhao
|
d0fd3e69ef
|
update testrunner, unit test for validate_host_network_port
|
2019-09-09 16:08:15 -07:00 |
|
shivkumar dudhani
|
f56603e4d4
|
update message to show resource path of failure for validation + print custom message on failure + anyPattern to return on first success validation + update scenarios for test runner
|
2019-09-05 12:44:38 -07:00 |
|
shivkumar dudhani
|
6228b8343e
|
refactor engine api
|
2019-09-03 15:48:13 -07:00 |
|
shivkumar dudhani
|
786cbf5522
|
fix test
|
2019-09-03 15:02:00 -07:00 |
|
shivkumar dudhani
|
d43b4d93c2
|
rebase with master
|
2019-08-30 01:08:54 -07:00 |
|
Shuting Zhao
|
998f612679
|
fix engine unit test
|
2019-08-15 15:23:54 -07:00 |
|
Shuting Zhao
|
a110efb96c
|
Merge branch 'policyViolation' into 254_dynamic_webhook_configurations
# Conflicts:
# main.go
# pkg/annotations/annotations.go
# pkg/annotations/controller.go
# pkg/controller/controller.go
# pkg/controller/controller_test.go
# pkg/engine/engine.go
# pkg/engine/generation.go
# pkg/engine/mutation.go
# pkg/engine/validation.go
# pkg/event/controller.go
# pkg/webhooks/mutation.go
# pkg/webhooks/policyvalidation.go
# pkg/webhooks/report.go
# pkg/webhooks/server.go
# pkg/webhooks/validation.go
|
2019-08-14 19:00:37 -07:00 |
|
Shuting Zhao
|
6b1b6dddfa
|
combine policy engine returns into single struct
|
2019-08-14 15:18:46 -07:00 |
|
shivkumar dudhani
|
0a1185d1fd
|
correct unit tests
|
2019-06-28 17:11:19 -07:00 |
|
belyshevdenis
|
46cbbf9568
|
Implemented validation across same yaml
|
2019-06-20 18:21:55 +03:00 |
|
Denis Belyshev
|
9bacfe4363
|
Implemented at least one exists logic
|
2019-06-13 17:20:00 +03:00 |
|
shivdudhani
|
200f3fce63
|
refactor code
|
2019-06-05 17:43:59 -07:00 |
|
Denis Belyshev
|
50610af82d
|
Added nil support
|
2019-06-05 17:35:34 +03:00 |
|
Denis Belyshev
|
e571f730b2
|
127: Implemented usage of result package in validation and mutation functions.
|
2019-06-05 13:43:07 +03:00 |
|
Denis Belyshev
|
aadb3c0140
|
Fixed namespaces in validation_test.go
|
2019-06-05 10:24:18 +03:00 |
|
belyshevdenis
|
18842b81a1
|
Fixed bug #117
Added validation tests
|
2019-06-04 17:33:21 +03:00 |
|
Denis Belyshev
|
f57422ef79
|
Fixed issue when number comes from resource as string and does not being validated
|
2019-05-28 14:25:29 +03:00 |
|
Denis Belyshev
|
cde2f2b0a0
|
Fixed issue: string patterns always return true
|
2019-05-28 14:07:15 +03:00 |
|
Denis Belyshev
|
435a19152a
|
I have finished implementing patterns
|
2019-05-27 18:07:24 +03:00 |
|
shivdudhani
|
19e137690f
|
resolve merge conflicts with branch release-0.1
|
2019-05-22 16:17:26 -07:00 |
|
shivdudhani
|
857aa81f3e
|
update the project name in api version and test
|
2019-05-22 10:53:01 -07:00 |
|
kacejot
|
9bea87ec75
|
Merge branch 'master' into mutating-overlay
|
2019-05-22 14:58:42 +01:00 |
|
shuting
|
de83a16493
|
rename pkg to kyverno
|
2019-05-21 11:00:09 -07:00 |
|
Maxim Goncharenko
|
302090cd86
|
Implemented base for Mutation Overlay
|
2019-05-21 18:27:56 +03:00 |
|
Maxim Goncharenko
|
0aebb2a88e
|
Fixed int and float types mismatch
|
2019-05-20 17:07:09 +03:00 |
|
Maxim Goncharenko
|
be13b041b6
|
Fixed issue with validation error messages
|
2019-05-20 14:48:38 +03:00 |
|
Maxim Goncharenko
|
0a486a7f54
|
I have finished implementing validation logic using TDD
|
2019-05-17 14:03:06 +03:00 |
|