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

feat: add support for configuring/injecting cloud-init into VMs #31

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

raharper
Copy link
Collaborator

@raharper raharper commented Apr 8, 2024

Update to qcli v0.3.1 which added support for a vvFAT driver enabling machine to create and attach a directory as a VFAT disk in the guest.

Add a new CloudConfig portion to the API that can import and use user-data, meta-data and network-config. Definiting these values in VM's config will render out the defined user-data, network-config and meta-data (auto generated if not supplied). This device is detected as as NoCloud data source and will initilized the guest if cloud-init is present in the image.

Additional changes:

  • moved utility functions to pkg/api/utils.go
  • added unittests for cloud-init API
  • Added 'test' and 'test-api' make targets
  • Added example configuration with cloud-init
  • Updated README to point to examples directory
  • Fixes some missing arguments to prints/logs found by go test

@raharper raharper requested a review from hallyn April 8, 2024 16:31
Update to qcli v0.3.1 which added support for a vvfatt driver enabling
machine to create and attach a directory as a VFAT disk in the guest.

Add a new CloudConfig portion to the API that can import and use
user-data, meta-data and network-config.  Definiting these values in
VM's config will render out the defined user-data, network-config and
meta-data (auto generated if not supplied). This device is detected as
as NoCloud data source and will initilized the guest if cloud-init is
present in the image.

Additional changes:

- moved utility functions to pkg/api/utils.go
- added unittests for cloud-init API
- Added 'test' and 'test-api' make targets
- Added example configuration with cloud-init
- Updated README to point to examples directory
- Fixes some missing arguments to prints/logs found by go test
- Add 'make test' to github actions

Signed-off-by: Ryan Harper <[email protected]>
@hallyn hallyn merged commit bbbeb45 into project-machine:main Apr 10, 2024
2 checks passed
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.

2 participants