diff --git a/crud-storage/crud-storage-scm-1.rockspec b/crud-storage/crud-storage-scm-1.rockspec index ba40656..ad08d70 100644 --- a/crud-storage/crud-storage-scm-1.rockspec +++ b/crud-storage/crud-storage-scm-1.rockspec @@ -10,7 +10,8 @@ dependencies = { 'checks == 3.0.1-1', 'cartridge == 2.3.0-1', 'metrics == 0.5.0-1', - 'crud >= 0.1.0-1' + 'crud >= 0.1.0-1', + 'migrations == 0.3.1-1' } build = { type = 'none'; diff --git a/crud-storage/helm-chart/Chart.yaml b/crud-storage/helm-chart/Chart.yaml index 7fa0710..d783918 100644 --- a/crud-storage/helm-chart/Chart.yaml +++ b/crud-storage/helm-chart/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.0" description: A Helm chart for Tarantool CRUD name: crud-storage -version: 0.0.3 +version: 0.0.4 dependencies: - name: tarantool-operator version: "0.0.7" diff --git a/crud-storage/helm-chart/values.yaml b/crud-storage/helm-chart/values.yaml index dd8ffa4..d36e804 100644 --- a/crud-storage/helm-chart/values.yaml +++ b/crud-storage/helm-chart/values.yaml @@ -5,7 +5,7 @@ ClusterName: tarantool-crud image: repository: vasiliyt/tarantool-crud - tag: 0.0.2 + tag: 0.0.3 pullPolicy: IfNotPresent service: @@ -27,3 +27,4 @@ RoleConfig: - crud-storage - vshard-router - metrics + - migrator diff --git a/crud-storage/init.lua b/crud-storage/init.lua index 2b20a6c..43380c4 100755 --- a/crud-storage/init.lua +++ b/crud-storage/init.lua @@ -33,9 +33,14 @@ local ok, err = cartridge.cfg({ 'cartridge.roles.vshard-storage', 'cartridge.roles.vshard-router', 'cartridge.roles.metrics', - 'cartridge.roles.crud-storage' + 'cartridge.roles.crud-storage', + 'migrator' }, cluster_cookie = 'myapp-cluster-cookie', }) assert(ok, tostring(err)) + +local migrator = require('migrator') +local config_loader = require('migrator.config-loader').new() +migrator.set_loader(config_loader)