belyshevdenis
898652b9a2
NK-23: Improved comments, commited crd with status subresource.
2019-03-07 17:57:43 +02:00
belyshevdenis
0a939e44dc
NK-23: Implemented logging to the policy object/status.
...
Refactored MutationWebhook, modified controller logs.
2019-03-07 17:42:37 +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
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
ea9491a105
NK-10: Controller renamed to PolicyController. Created MutationWebhook class in new webhook package. Implemented filtering of incoming objects by Kind. Implemented simple usage of PolicyController in MutationWebhook.
2019-02-21 20:31:18 +02:00
belyshevdenis
81e54bb6a0
Implemented test webhook, fixed script for certificate generation, fixed project dependencies
2019-02-21 18:13:21 +02:00
belyshevdenis
0f78f5cb82
NK-10: Small fixes after dev testing
2019-02-19 18:01:47 +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
ddf3e4c278
NK9: Updated policy crd and added minimal policy sample to check controller functions
2019-02-12 19:01:25 +02:00
belyshevdenis
e96562a1cf
NK9: Controller is a separate module now
2019-02-12 16:57:36 +02:00