karannaoh's Blog

Final Week | Helm chart tweeks

karannaoh
Published: 08/22/2019

PR:- #638

Added helm charts for Guillotina

Description

1 Deployement with 2 pods by default

1 configmap to mount guillotina configuration yaml on the pods 

1 Service to expose guillotina

Guillotina allows user to pass arguments to override values defined in configuration fine similar to that user can pass arguments to `helm install` to override configuration.

Simple way to edit configurations is to edit configuration file in values.yaml

View Blog Post

Week #10 | Helm chart Guillotina

karannaoh
Published: 08/07/2019

Issue:-#617

Task is to add helm charts for guillotina, so that guillotina can easily be deployed on kubernetes with all availble configurations.

The helm chart should have support for configuring n number of databases and all the settings that guillotina supports. It would package these configuration settings into a config.json(or yaml if you prefer) that is mounted and referenced in the command arguments.

Make sure to provide the ability to also customize the image because people using this will likely be customizing the docker image used to package other things with guillotina(like customize addons).

This helm chart would serve as a generic chart to be able to deploy guillotina with.

View Blog Post

Week #9 | Fixes in Swagger and schema validation

karannaoh
Published: 07/29/2019

PR #618

This week:-

Updated services parameters definitions according to OpenAPI 3.0

- Added path parameters for endpoints

- Added schemas to parameter definitions

- and added definitions to the endpoint which didnt had definitions of swagger

 

View Blog Post

Week #8 | Fixes in decorator for validation

karannaoh
Published: 07/23/2019

Issue: #508 Validating all the request hiting Guillotina against proper jsonschema.

This Week:

PR: #517 

Requests coming to the API were not being validated, task was to validate all the request hitting the API. Jsonschema is already defined for most of the endpoints, only a validation wrapper was required to be added to all the endpoint(along with jsonschema for missing endpoints and testcases for validation). Now all the request hitting being validated against a well defined schema and through 412(Precondition failed) along with proper error in case of a bad request. 

Next Week:

Issue: #507

Added validation is a wrapper over all the endpoint causing too much redundancy in code base because its need to be added to all the endpoint. Next thing is to replace the validation with a decorator, which will validate the request automatically and will have very less code redundancy

Stuck anywhere:

No

View Blog Post

Week #7 | Guillotina PubSub

karannaoh
Published: 07/15/2019

Commit :- 530f9c7e08151cf499d156c1fc756a0239bace5c

Worked on guillotina_pubsub which is a guillotina addon to subscribe to the content change via a websocket endpoint.

Last-Week:

Created a subscriber to listen to content change event and publish it on redis pubsub guillotina

This Week:-  

Created websocket endpoint to @content-changes which a user can subscribe to in order to get the the changes from server about the content changed

View Blog Post