Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for advanced Linode provisioning by allowing custom disk layouts and configuration profiles (instead of relying solely on a pre-built image).
Changes:
- Introduces new
diskandconfigconfiguration blocks (HCL2 support + validation updates). - Adds a new build step to create disks/config profiles and boot via a selected config.
- Updates docs/examples and expands unit/acceptance tests around the new configuration mode.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| go.mod | Updates Go language version used by the module. |
| builder/linode/config.go | Adds new configuration structs and updates validation to support custom disk/config mode. |
| builder/linode/config.hcl2spec.go | Adds generated HCL2 spec support for new disk and config blocks. |
| builder/linode/step_create_linode.go | Adjusts instance creation to omit image/boot when provisioning disks/configs explicitly. |
| builder/linode/step_create_disk_config.go | Implements custom disk creation, config profile creation, and manual boot. |
| builder/linode/builder.go | Inserts the new disk/config creation step into the build pipeline. |
| builder/linode/builder_test.go | Adds unit tests for new validation and parsing behavior. |
| builder/linode/builder_acc_test.go | Adds acceptance tests for custom disks/configs and interface combinations. |
| docs/builders/linode.mdx | Documents custom disk/config usage and adds full examples. |
| .web-docs/components/builder/linode/README.md | Mirrors docs updates in generated web docs. |
| example/* | Updates example templates (regions/images) to newer defaults. |
| builder/linode/artifact_test.go | Updates expected source image metadata in tests. |
| AGENTS.md | Adds repository guidelines for AI coding agents. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 19 out of 19 changed files in this pull request and generated 11 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 20 out of 20 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
05cd603 to
25ab6e3
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 21 out of 21 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
d60fb4e to
7cf1f06
Compare
📝 Description
Resolve #222
Add support for custom disks and configuration profiles in the Linode builder, enabling advanced provisioning with custom disk layouts, multiple filesystems, and configuration profiles instead of pre-built images.
Changes
Disk,InstanceConfig,InstanceConfigDevices,InstanceConfigDevice, andInstanceConfigHelpersstructs with full HCL2 supportstep_create_disk_config.gofor custom disk creation, label resolution, and configuration profile managementPrepare()method with comprehensive checks preventing incompatible configurations✔️ How to Test
Auto Testing
Manual Testing
Save this into a file maybe named as
test.pkr.hcl. Then checkout this branch andmake devto install it. Runpacker build .to test it.