Skip to content
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

Add system-info instance callback #200

Merged

Conversation

gabriel-samfira
Copy link
Member

@gabriel-samfira gabriel-samfira commented Jan 4, 2024

Allow runners to update their own system information. The goal is to get better info about the runners that we spawn. Right now we just retrieve os_name, os_version and agent_id, but this can be expanded later to include other info.

We also want to collect the actual agent_id of the GH runner using a callback that makes more sense. The status updates should only report installation status, which is informational.

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 <[email protected]>
@gabriel-samfira gabriel-samfira merged commit f72e972 into cloudbase:main Jan 4, 2024
4 checks passed
@gabriel-samfira gabriel-samfira deleted the add-systeminfo-callback branch January 4, 2024 15:46
gabriel-samfira added a commit to gabriel-samfira/garm-provider-common that referenced this pull request Jan 4, 2024
With cloudbase/garm#200 userdata is now able
to update the system information of a runner.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
gabriel-samfira added a commit to gabriel-samfira/garm-provider-k8s that referenced this pull request Jan 4, 2024
A new callback is available in garm which allows runners to send info
about themselves from userdata. This new callback allows instances to
report their os_name, os_version and the GH agent_id.

See cloudbase/garm#200

This change allso makes sure that curl is installed in the image,
otherwise the userdata will never work.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
gabriel-samfira added a commit to gabriel-samfira/garm-provider-k8s that referenced this pull request Jan 4, 2024
A new callback is available in garm which allows runners to send info
about themselves from userdata. This new callback allows instances to
report their os_name, os_version and the GH agent_id.

See cloudbase/garm#200

This change allso makes sure that curl is installed in the image,
otherwise the userdata will never work.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
gabriel-samfira added a commit to gabriel-samfira/garm-provider-k8s that referenced this pull request Jan 4, 2024
A new callback is available in garm which allows runners to send info
about themselves from userdata. This new callback allows instances to
report their os_name, os_version and the GH agent_id.

See cloudbase/garm#200

This change allso makes sure that curl is installed in the image,
otherwise the userdata will never work.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
gabriel-samfira added a commit to gabriel-samfira/garm-provider-k8s that referenced this pull request Jan 4, 2024
A new callback is available in garm which allows runners to send info
about themselves from userdata. This new callback allows instances to
report their os_name, os_version and the GH agent_id.

See cloudbase/garm#200

This change allso makes sure that curl is installed in the image,
otherwise the userdata will never work.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
gabriel-samfira added a commit to gabriel-samfira/garm-provider-k8s that referenced this pull request Jan 13, 2024
A new callback is available in garm which allows runners to send info
about themselves from userdata. This new callback allows instances to
report their os_name, os_version and the GH agent_id.

See cloudbase/garm#200

This change allso makes sure that curl is installed in the image,
otherwise the userdata will never work.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
rafalgalaw pushed a commit to mercedes-benz/garm-provider-k8s that referenced this pull request Jan 17, 2024
A new callback is available in garm which allows runners to send info
about themselves while installing. This new callback allows instances to
report their os_name, os_version and the GH agent_id.

See cloudbase/garm#200

This change also makes sure that curl is installed in the image,
otherwise the entrypoint will fail.

Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant