Skip to content

Add project level disk size override#9434

Open
kaspersjo wants to merge 2 commits into
mainfrom
add-disk-override
Open

Add project level disk size override#9434
kaspersjo wants to merge 2 commits into
mainfrom
add-disk-override

Conversation

@kaspersjo
Copy link
Copy Markdown
Contributor

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@kaspersjo kaspersjo requested a review from begelundmuller May 12, 2026 15:33
Comment on lines +195 to +199
// Compute storage. If an override is provided on the project, it takes precedence over the slot-based default.
storageBytes := 40 * int64(args.Slots) * int64(datasize.GB)
if args.OverrideDiskGB > 0 {
storageBytes = args.OverrideDiskGB * int64(datasize.GB)
}
Copy link
Copy Markdown
Contributor

@begelundmuller begelundmuller May 12, 2026

Choose a reason for hiding this comment

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

What if you want to set 0.5 GB? Or literally 0 (no disk)? Not sure if that's needed, just asking

Slots int `mapstructure:"slots"`
Version string `mapstructure:"version"`
Environment string `mapstructure:"environment"`
OverrideDiskGB int64 `mapstructure:"override_disk_gb,omitempty"`
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.

Should this be a pointer?

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