Skip to content

Commit

Permalink
update(userspace/falco): introduce new engine_version_semver key in v…
Browse files Browse the repository at this point in the history
…ersions endpoint

Signed-off-by: Lorenzo Susini <[email protected]>
  • Loading branch information
loresuso committed Nov 2, 2023
1 parent 214e41d commit 7c8cb62
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion userspace/falco/versions_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ nlohmann::json falco::versions_info::as_json() const
version_info["driver_api_version"] = driver_api_version;
version_info["driver_schema_version"] = driver_schema_version;
version_info["default_driver_version"] = default_driver_version;
version_info["engine_version"] = engine_version;
// note: the 'engine_version' key below must be removed in the next major bump (0.x.y -> 1.0.0)
// the two keys are kept for existing tooling that relies on the old key
// (falcoctl will match old rules artifacts configs by using this key, and the new ones using
// the engine_version_semver key)
version_info["engine_version"] = std::to_string(FALCO_ENGINE_VERSION_MINOR);
version_info["engine_version_semver"] = engine_version;
for (const auto& pv : plugin_versions)
{
version_info["plugin_versions"][pv.first] = pv.second;
Expand Down

0 comments on commit 7c8cb62

Please sign in to comment.