1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
Commit graph

56 commits

Author SHA1 Message Date
shivkumar dudhani
8414681e60 support variable substitution in overlay mutation 2019-12-12 18:25:54 -08:00
shivkumar dudhani
b5de11fc0e refactor engine packages for validate & generate 2019-12-12 15:02:59 -08:00
Shuting Zhao
8edb00d714 - skip processing mutate rule if condition is not met; - update debugging info 2019-12-09 19:28:34 -08:00
Shuting Zhao
51642cbcf3 skip process mutate patches if conditon tag is not present 2019-11-27 19:40:47 -08:00
Shuting Zhao
e743a4702c escape slash in annotation patch 2019-11-27 17:51:33 -08:00
Shuting Zhao
a1ce6e4297 fix annotation patch in mutate rule 2019-11-13 17:56:56 -08:00
Shuting Zhao
b67577994a update apiversion to v1 in code 2019-11-13 13:41:08 -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
8496a483dc - remove resource info per rule; - add resource info in each failed admission request 2019-11-06 17:14:32 -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
489e55d6c3 add best_practices scenario_mutate_safe-to-evict 2019-11-05 10:16:07 -08:00
Shuting Zhao
86c00a8f30 return failure path for mutate condition check 2019-11-01 11:14:58 -07:00
shivkumar dudhani
3fa8834b4a policy validation: refactoring 2019-10-21 14:22:31 -07:00
shivkumar dudhani
cf32510067 remove old function refereces and update tests 2019-09-05 09:37:57 -07:00
shivkumar dudhani
cd6b1d0990 aggregate rule status 2019-09-03 17:43:36 -07:00
shivkumar dudhani
07d86cb769 add success tests for validation & mutation 2019-08-29 18:48:58 -07:00
shivkumar dudhani
b062d70e29 initial redesign 2019-08-23 18:34:23 -07:00
Shuting Zhao
a83e5c1d05 Merge commit '2192703df1bb26cb8b30a1aece6f9afeed09b214' into 254_dynamic_webhook_configurations
# Conflicts:
#	pkg/engine/generation.go
#	pkg/engine/overlay.go
#	pkg/engine/utils.go
#	pkg/engine/utils_test.go
#	pkg/gencontroller/controller.go
#	pkg/gencontroller/generation.go
#	pkg/webhooks/mutation.go
#	pkg/webhooks/server.go
2019-08-19 16:44:38 -07:00
shivkumar dudhani
44db8b064e resource description: support list of namespaces 2019-08-17 09:45:57 -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
shivkumar dudhani
e7b538be79 add process existing for mutation & validation + come cleanup 2019-08-13 11:32:12 -07:00
shivkumar dudhani
1e621146be test policy engine on admission requests 2019-08-09 16:55:43 -07:00
shivkumar dudhani
373d9a45ad clean up mutation 2019-08-09 12:59:37 -07:00
shivkumar dudhani
a30ad6bab2 cleanup 2019-08-09 11:08:02 -07:00
Shuting Zhao
a70d253828 fix anchors in the list of map VS anchors on different list 2019-07-26 17:52:12 -07:00
shivkumar dudhani
ba34d96c7d annnotation patch 2019-07-25 13:14:55 -04:00
shivkumar dudhani
0ee748a95f resource patched after every rule + rm PatchBytes 2019-07-05 15:20:43 -07:00
shivkumar dudhani
b7655ae747 introduce info struct for engine responses 2019-06-25 18:16:02 -07:00
Denis Belyshev
21a8ac8416 Merge branch 'master' into 50-at-least-one-exist 2019-06-18 19:34:31 +03:00
Denis Belyshev
1a08ab4bda Implemented logic "Add if not exist" 2019-06-14 17:19:32 +03:00
Denis Belyshev
9bacfe4363 Implemented at least one exists logic 2019-06-13 17:20:00 +03:00
Denis Belyshev
5339f44504 Added comment for applyOverlayToArrayOfMaps 2019-06-12 13:12:36 +03:00
Denis Belyshev
f89168f77a Wrote additional comments 2019-06-12 12:21:52 +03:00
Denis Belyshev
804d610fc7 Refactored overlays and updated tests. Now new element in array is added to the end 2019-06-11 16:54:19 +03:00
shivdudhani
200f3fce63 refactor code 2019-06-05 17:43:59 -07:00
Denis Belyshev
181a1282e0 Fixed mutation by overlays 2019-06-05 16:44:53 +03:00
Denis Belyshev
8c7ea8d741 Fixed combining of results in Mutate function 2019-06-05 15:40:31 +03:00
Denis Belyshev
e571f730b2 127: Implemented usage of result package in validation and mutation functions. 2019-06-05 13:43:07 +03:00
shivdudhani
c205cca38b introduce glog, remove log.logger references 2019-05-30 12:28:56 -07:00
Denis Belyshev
22b942d229 Added bool support 2019-05-27 18:21:23 +03:00
Denis Belyshev
a85f646bd4 Removed excess Fatal log 2019-05-27 18:11:39 +03:00
Denis Belyshev
435a19152a I have finished implementing patterns 2019-05-27 18:07:24 +03:00
kacejot
8e73131f02 Fixed minor issue in overlay logic. Added tests 2019-05-23 19:13:39 +03:00
kacejot
18fc6d630f Fixed: Overlay overwrites all items in the list 2019-05-23 16:31:00 +03:00
kacejot
f57cce907a Fixed issue: Overlay was not returning error 2019-05-23 15:53:35 +03:00
kacejot
139e83c307 Merge remote-tracking branch 'refs/remotes/origin/master' 2019-05-23 14:52:12 +03:00