1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
Commit graph

3820 commits

Author SHA1 Message Date
shuting
4862d03c3c Remove regexp, add wildcard checks instead 2019-05-03 14:58:09 -07:00
shuting
565afd7e3c - Update violation ruleName to the actual name of the rule; - Add the description to method ApplyRegex 2019-05-02 11:57:41 -07:00
shuting
06e5c433b9 add violations when patches are not applied 2019-05-01 14:48:50 -07:00
Shivkumar Dudhani
9a6738e272 violation framework updates 2019-04-30 17:30:27 -07:00
shuting
91b3269aa1 implement wildcard support 2019-04-30 17:26:50 -07:00
System Administrator
94bc5f22ca violation type add + violation builer framework 2019-04-29 14:34:54 -07:00
shuting
2b25eee07c move engine and violation into pkg 2019-04-26 18:53:38 -07:00
belyshevdenis
6845b48068 NK-31: Implemented validation of failurePolicy field. 2019-03-12 14:42:24 +02:00
belyshevdenis
c7ebbc2def NK-31: Types validation methods moved to separate source file.
assertEq and assertNe utils replaced by gotest.tools/assert, deleted these utils.
Implemented proper serialization of JSON patches: all simple types  in values are converted to sting, all maps of interfaces are converted to maps of strings. I.e. implemented applying of JSON patches directly from values in policies.
2019-03-11 20:50:06 +02:00
belyshevdenis
b320b4b433 NK-23: Implemented Validate() methods for structures in types.go.
Implemented tests for added methods.
Added usage of Validate() methods to the code, removed old checks.
Fixed some comments, added new comments.
2019-03-05 20:04:23 +02:00
belyshevdenis
2ef3bba93d NK-23: Thre creation of default loggers moved to inside classes.
Removed fatal termination from object constructors.
Implemented new KubeClient class with test method which creates a Secret.
Improved comments for the types structures.
Added WebhookServerConfig structure instead of the most parameters to NewWebhookServer.
2019-03-04 20:40:02 +02:00
belyshevdenis
d593fe1a92 NK-22: Fixed build error with Selector pointer. Added comments. Changed tab to 4 spaces identation. Added unit tests for LabelSelector. 2019-03-01 17:59:59 +02:00
belyshevdenis
d0de77f9ce NK-21: Improved policy type declaration, fixed declaration of patch field, made corresponding changes to applyPolicyRule. Fixed sentense in README.md. 2019-02-28 19:09:51 +02:00
belyshevdenis
68e468a699 NK-21: Added checking request by selector. Added tests for this logic. Added test policy file for selectors. 2019-02-28 18:43:20 +02:00
belyshevdenis
ae952f73ab NK-10: Fixed group name in crd.yaml and register.go.
Fixed crash in controller, removed name checking in the root of admission request.
2019-02-28 14:25:47 +02:00
belyshevdenis
eb5c486ae1 NK-10: Refactored policy types, used patch operation struct from there instead of internal struct.
Implemented checking of incoming request to correspond the policy rule, added tests.
Implemented generation of JSON patches according to patches in policy object, added tests.
Implemented base version of Mutate function as a wrapper for all mutation functions.
2019-02-22 18:12:14 +02:00
belyshevdenis
5680480600 NK-9: Merged Webhook server and Policy controller. Added logger for controller. 2019-02-14 16:40:36 +02:00
belyshevdenis
65f766d905 NK9: Removed storage logic due to the policies cache. Updated types due to the policy-example.yaml 2019-02-14 14:33:36 +02:00
belyshevdenis
a6bc743f99 NK9: Added controller module. Added main loop for controller. Added informer for Policies. Fixed apis definitions to fit the Policy 2019-02-11 19:49:27 +02:00
belyshevdenis
9a0db318d3 Initial commit with resource stub 2019-02-06 14:23:15 +02:00