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

53 commits

Author SHA1 Message Date
shivkumar dudhani
bc051177ab fix unit tests 2019-07-26 07:28:34 -04:00
shivkumar dudhani
94a6f1a71a match % exclude resources 2019-07-23 23:34:03 -04:00
shivkumar dudhani
9f157544c9 cleanUp 2019-07-19 15:10:40 -07:00
shivkumar dudhani
f9b5ac9a27 flag, violations 2019-07-18 10:22:20 -07:00
shivkumar dudhani
f47910da53 update flag & support ValidationFailureAction flag 2019-07-15 19:14:42 -07:00
shivkumar dudhani
f879375ab3 add mode to policy struct 2019-07-15 16:02:19 -07:00
shivkumar dudhani
a5817f5863 violation clean up 2019-07-15 14:49:22 -07:00
shivkumar dudhani
29a89d20ad violation cleanup for existing resources 2019-07-15 11:29:58 -07:00
shivkumar dudhani
29653196bf Add namespace selector to filter on namespace 2019-07-01 13:27:10 -07:00
shivkumar dudhani
30bcc6cccd create violations 2019-06-27 11:43:07 -07:00
shivkumar dudhani
8324949f50 violation struct update 2019-06-26 18:02:01 -07:00
shivdudhani
200f3fce63 refactor code 2019-06-05 17:43:59 -07:00
Denis Belyshev
e571f730b2 127: Implemented usage of result package in validation and mutation functions. 2019-06-05 13:43:07 +03:00
shuting
c0e98e74cf Merge branch 'master' into 69_parse_multiple_resources 2019-06-03 16:37:18 -07:00
shivdudhani
ecca97b2a0 update namespace trigger + update documentation 2019-06-03 16:02:34 -07:00
shuting
0b85f1da0b update vendor due to build failure 2019-06-03 15:14:06 -07:00
shivdudhani
b59ab9a84a update from to clone for copying existing resource 2019-05-31 18:45:23 -07:00
shivdudhani
183b17828e support generation of any resource 2019-05-31 17:59:36 -07:00
shuting
bfc56b935c check in vendor and code generated by code-gen 2019-05-22 20:33:19 -07:00
shivdudhani
02d17f7d84 rebase with release 1.0 2019-05-22 10:43:29 -07:00
shuting
09bfdc6ba3 - Change kube-policy to kyverno in install.yaml - Install in namespace kyverno 2019-05-21 18:36:24 -07:00
shivdudhani
31ce087504 support list of kind in resource, update the CRD openapischema & adapt the test and examples for the change 2019-05-21 15:43:43 -07:00
shuting
de83a16493 rename pkg to kyverno 2019-05-21 11:00:09 -07:00
shivdudhani
5be203d2ce group version registration and names correction for gvk 2019-05-20 10:56:12 -07:00
shuting
36f76a0f2f - Correct crd yaml, since we only allow 1 generation per rule. - update example for generator 2019-05-16 17:19:38 -07:00
shuting
e8de9a111a Finished Generate() logic to actual generating the resource 2019-05-16 14:09:02 -07:00
shuting
b58e4f5026 Format project with gofmt, govet, misspell 2019-05-15 18:53:45 -07:00
shuting
9956f3ee12 add unit test pkg/apis/policy/v1alpha1/utils_test.go 2019-05-15 18:27:02 -07:00
shuting
a36bb2fbac Implement Generate() 2019-05-14 18:20:41 -07:00
Maxim Goncharenko
c22add9969 Moved all util funcs to the utils.go. Added deepcopy functions for policy types 2019-05-13 21:20:31 +03:00
Maxim Goncharenko
8fea251837 Made mutation, validation, generation and overlay optional due to the specs 2019-05-13 21:18:02 +03:00
Maxim Goncharenko
43ebd8c12c Changed policy type definition due to the policy-v2 specification 2019-05-13 16:10:00 +03:00
shivdudhani
6d83aa6b9e merge the changes with policy-engine 2019-05-10 12:36:55 -07:00
shivdudhani
9d4541ac02 move policy violation type inside status subresource 2019-05-06 17:03:37 -07:00
shivdudhani
0babf1f25d redesign event & violation builders. kubeclient to provide resource handlers 2019-05-06 09:12:37 -07:00
shuting
4862d03c3c Remove regexp, add wildcard checks instead 2019-05-03 14:58:09 -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
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