-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report the version from the elastic agent package instead of agent binary #2582
Comments
Depending on what we do in #2579 (comment), another option could be for the agent to report the version number from its parent directory e.g. |
Moving this to a later sprint as the plan changed a bit. |
We are moving this back into the sprint. cc @pchila |
Since the version command is usable even without the agent being installed I am going with the solution of a file being created and packaged in the agent (similar to what we already do with the |
Yes, using instead of seems preferable here, since the buildid is hard to tie back to a specific set of commits on its own. |
Issue
We need to be able to repackage Agent without rebuilding the Agent binary, and still have Agent report the updated version number at runtime. The repackaging step will be created as part of #2498
This requires that agent reads its version from a plaintext file that can be updated as part of the packaging step, rather than written directly into the binary.
Suggested solution
Implement after #2579 to use the full version number contains in the parent directory.
Definition of done
The text was updated successfully, but these errors were encountered: