Skip to content

Commit 6cdd6ea

Browse files
crud: introduce basic tarantool 3 roles
This patch introduce basic crud-router and crud-storage roles for Tarantool 3. The roles are similar to Cartridge ones. Roles support Tarantool 3.0.2, Tarantool 3.1.0 and newer due to [1, 2]. This commit makes all existing config tests run with roles enabled instead of manual bootstrap. This commit does not yet introduce metrics configuration through roles config. [1] tarantool/tarantool#9643 [2] tarantool/tarantool#9649 Part of #415
1 parent 6cd51a1 commit 6cdd6ea

File tree

16 files changed

+579
-78
lines changed

16 files changed

+579
-78
lines changed

.github/workflows/test_on_push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
external-keydef-version: "0.0.4"
4444
- tarantool-version: "3.0.0"
4545
vshard-version: "0.1.25"
46+
- tarantool-version: "master"
47+
vshard-version: "0.1.26"
4648
fail-fast: false
4749
# Can't install older versions on 22.04,
4850
# see https://github.com/tarantool/setup-tarantool/issues/36

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Added
1111
* Asynchronous bootstrap support for storages (#412).
12+
* Tarantool 3 roles for setting up crud routers and storages (#415).
1213

1314
### Changed
1415
* Explicitly forbid datetime interval conditions (#373).

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ file(GLOB_RECURSE LUA_FILES
99
"${CMAKE_CURRENT_SOURCE_DIR}/crud.lua"
1010
"${CMAKE_CURRENT_SOURCE_DIR}/crud/*.lua"
1111
"${CMAKE_CURRENT_SOURCE_DIR}/cartridge/roles/*.lua"
12+
"${CMAKE_CURRENT_SOURCE_DIR}/roles/*.lua"
1213
)
1314

1415
## Testing ####################################################################
@@ -95,3 +96,8 @@ install(
9596
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cartridge
9697
DESTINATION ${TARANTOOL_INSTALL_LUADIR}
9798
)
99+
100+
install(
101+
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/roles
102+
DESTINATION ${TARANTOOL_INSTALL_LUADIR}
103+
)

0 commit comments

Comments
 (0)