wso2 / kubernetes-open-banking

Kubernetes and Helm Resources for WSO2 Open Banking
Apache License 2.0
35 stars 12 forks source link

[2.0.0] Redesign MySQL database structure to support multiple specifications #71

Closed nalakagunathilaka closed 3 years ago

nalakagunathilaka commented 3 years ago

Description: Currently WSO2 Open Banking Kubernetes artifacts support only one specification (i.e Berlin). In future there might be a requirement for the K8s artifacts to support multiple specifications.

We already have an approach as follows.

Folder Structure:

kubernetes-open-banking
|--database
   |--mysql-ob
   |--mysql-ob-berlin
   |--mysql-ob-uk

Here we use all the specification related scripts inside relevant folders such as mysql-ob-berlin and mysql-ob-uk. These chart folders contains a MySQL base chart inside their charts directory. Then we package both these specification based database charts inside common mysql-ob chart. Relevant conditions in the requirements.yaml file in mysql-ob chart will determine which sub-chart (either mysql-ob-berlin or mysql-ob-uk) to deploy in the deployment time.

nalakagunathilaka commented 3 years ago

Fixed.