Add system-info instance callback

Allow runners to update their own system information. Runners can now send
back os_name, os_version and agent_id back as part of a POST to
CALLBACK_URL/system-info/.

The goal is to get better info in regard to the actual OS that's running
and to move the agent_id from the status updates to the system-info callback.

The status updates should be used only to send back info about the status of
the installation process.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2024-01-04 15:23:43 +00:00
parent 8fe4f17e1c
commit 2a5e2409b2
5 changed files with 58 additions and 2 deletions

View file

@ -239,5 +239,5 @@ type UpdateEntityParams struct {
type InstanceUpdateMessage struct {
Status RunnerStatus `json:"status"`
Message string `json:"message"`
AgentID *int64 `json:"agent_id"`
AgentID *int64 `json:"agent_id,omitempty"`
}