feat: add cloud-init user data support via Linode Metadata#222
Open
lots0logs wants to merge 1 commit intolinode:mainfrom
Open
feat: add cloud-init user data support via Linode Metadata#222lots0logs wants to merge 1 commit intolinode:mainfrom
lots0logs wants to merge 1 commit intolinode:mainfrom
Conversation
* feat: support metadata user data Co-authored-by: lots0logs <4675662+lots0logs@users.noreply.github.com> * fix: address cloud-init review comments Agent-Logs-Url: https://github.com/lots0logs/docker-machine-driver-linode/sessions/7c66e84c-87fb-4861-ab2d-8874c175f8f5 Co-authored-by: lots0logs <4675662+lots0logs@users.noreply.github.com> --------- Co-authored-by: openai-code-agent[bot] <242516109+Codex@users.noreply.github.com> Co-authored-by: lots0logs <4675662+lots0logs@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Adds support for supplying cloud-init user data when creating Linode instances with this docker-machine driver, passing it through Linode’s Metadata service.
Changes:
- Introduces
--linode-user-data/LINODE_USER_DATAwith inline and@fileforms, encoding content as base64. - Sends the encoded user data via
InstanceCreateOptions.Metadataduring instance creation. - Adds unit tests covering inline, file-backed, and error cases, plus README option documentation.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| README.md | Documents the new linode-user-data option and its behavior. |
| pkg/drivers/linode/linode.go | Adds driver field/flag parsing, base64 encoding helper, and passes user-data via instance metadata on create. |
| pkg/drivers/linode/linode_test.go | Adds tests for inline and file-based user-data handling and error paths. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--linode-user-data/LINODE_USER_DATAsupport for cloud-init user data@fileinput formsFixes #221