shivdudhani
0babf1f25d
redesign event & violation builders. kubeclient to provide resource handlers
2019-05-06 09:12:37 -07:00
belyshevdenis
670881c71d
NK-51: Added Deployment as owner of MutatingWebhookConfiguration. This allows kubernetes to delete webhook config, when deployment deletes.
2019-03-25 18:12:48 +02:00
belyshevdenis
4912f20885
NK-47: Implemented webhook deregistration.
...
TLS pair initialization functionality moved to init.go.
Separated server and mutation webhook objects, implemented registration of webhook with the creation of corresponding object.
Added comments for webhook configuration definitions, changed name of configuration for debug.
2019-03-22 22:11:55 +02:00
belyshevdenis
c662f1c9db
NK-31: Renamed constants package to config
2019-03-21 18:09:14 +02:00
belyshevdenis
92c97a92e9
NK-31: Put constants in separate file. Updated install.yaml definition to create Service and DaemonSet. Fixed bug with webhook registration.
2019-03-21 15:57:30 +02:00
belyshevdenis
89b211d1f9
NK-31: Implemented webhook registration logic.
2019-03-19 21:32:31 +02:00
belyshevdenis
0597c3ec4a
NK-31: Decomposed controller initialization functions.
2019-03-15 19:22:06 +02:00
belyshevdenis
4e63fcbfa0
NK-31: Implemented creation TLS certificate
...
Implemented storing the certificates in secret within the cluster.
Implemented the cheking certificate's expiration date.
Implemented initialization of server with certs data instead of files.
2019-03-15 19:03:55 +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
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
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
belyshevdenis
88c90eaa4d
NK-8: Implemented basic HTTPS server with stub for mutation webhook. Implemented script for generating TLS key and certificate. Created MutatingWebhookConfiguration.yaml with declaration of future service.
2019-02-12 16:30:40 +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
44ddeb9a68
NK-8: Implemented simple webserver with empty mutation handler
2019-02-07 19:22:04 +02:00
belyshevdenis
b93fb184cc
NK2: Added script for code-generator, YAMLs with CRDs and stub for main.go
2019-02-06 14:52:09 +02:00