Closed toewsar closed 1 year ago
@toewsar Yes this would definitely be a good thing to change to reduce the dependencies between components. And considering the tedge cli is purely optional in cases where a user is creating their own mosquitto bridge configuration file and certificates.
We've now changed the handling to always use the tedge-mapper
version rather trying to check the version of the tedge
binary. This removes the dependency between to the tedge
package.
QA has thoroughly checked the feature and here are the results:
tests/RobotFramework/tests/cumulocity/inventory/inventory_update.robot
Merged into main and available using pre-release channel, or in next release 0.12.0
Is your feature request related to a problem? Please describe. Currently the tedge-mapper-c8y publishes the
c8y_agent
fragement to c8y. The fragment contains the version of thin-edge.io which is read bytedge --version
. That makes the mapper dependent of thetedge
-cli tool. In our very memory constrained devices we are not able to install thetedge
-cli tool, therefore the version isunknown
.Describe the solution you'd like Use the version of the tedge-mapper-c8y. This might also make more sense, because the specific c8y-functionallity depends more on the version of the
tedge-mapper
and not of thetedge
-cli tool.Describe alternatives you've considered Make a fallback to the
tedge-mapper
version if callingtedge --version
fails.Additional context