Skip to content

feat: make disk sizes configurable on macos#1733

Open
Swapnanil-Gupta wants to merge 5 commits intomainfrom
feat-configurable-disks
Open

feat: make disk sizes configurable on macos#1733
Swapnanil-Gupta wants to merge 5 commits intomainfrom
feat-configurable-disks

Conversation

@Swapnanil-Gupta
Copy link
Copy Markdown
Contributor

@Swapnanil-Gupta Swapnanil-Gupta commented Apr 6, 2026

Issue #, if available:

Description of changes:

  • Adds datadisk and bootdisk config options to finch.yaml to make the size of the data disk (persistent) and boot disk (ephemeral) configurable.

Testing done:

  • I've reviewed the guidance in CONTRIBUTING.md

License Acceptance

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Swapnanil-Gupta Swapnanil-Gupta marked this pull request as ready for review April 7, 2026 23:45
Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
@Swapnanil-Gupta Swapnanil-Gupta force-pushed the feat-configurable-disks branch from 1e7f403 to 1ad0318 Compare April 8, 2026 18:15
ayush-panta
ayush-panta previously approved these changes Apr 8, 2026
Copy link
Copy Markdown
Contributor

@ayush-panta ayush-panta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

settingsVMCommand.Flags().String(
"datadisk",
config.DefaultDataDisk,
"the amount of data disk space (sparse) to give to the virtual machine (restart the vm when applying this change.)",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above, warning that this cannot be lowered in the future

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not make sense to add a warning here as this command just updates the config and does not perform the resize operation (the resizing happens on next vm start/init).

Copy link
Copy Markdown
Contributor

@coderbirju coderbirju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM minor nits and questions for my understanding

- Add warnings that increasing datadisk size is irreversible without losing data
- Add ability to rollback config changes if disk resize operation fails
- Add a test to set size of disk to a very large amount

Signed-off-by: Swapnanil-Gupta <swpnlg@amazon.com>
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.

3 participants