Skip to content

Commit

Permalink
crud: introduce basic tarantool 3 roles
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DifferentialOrange committed Apr 1, 2024
1 parent fb60f63 commit c7c72c7
Show file tree
Hide file tree
Showing 17 changed files with 618 additions and 81 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
external-keydef-version: "0.0.4"
- tarantool-version: "3.0.0"
vshard-version: "0.1.25"
- tarantool-version: "master"
vshard-version: "0.1.26"
fail-fast: false
# Can't install older versions on 22.04,
# see https://github.com/tarantool/setup-tarantool/issues/36
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

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

### Changed
* Explicitly forbid datetime interval conditions (#373).
Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ file(GLOB_RECURSE LUA_FILES
"${CMAKE_CURRENT_SOURCE_DIR}/crud.lua"
"${CMAKE_CURRENT_SOURCE_DIR}/crud/*.lua"
"${CMAKE_CURRENT_SOURCE_DIR}/cartridge/roles/*.lua"
"${CMAKE_CURRENT_SOURCE_DIR}/roles/*.lua"
)

## Testing ####################################################################
Expand Down Expand Up @@ -95,3 +96,8 @@ install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cartridge
DESTINATION ${TARANTOOL_INSTALL_LUADIR}
)

install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/roles
DESTINATION ${TARANTOOL_INSTALL_LUADIR}
)
Loading

0 comments on commit c7c72c7

Please sign in to comment.