Skip to content

feat: preflight check for quota availability - #849

Open
zreigz wants to merge 10 commits into
mainfrom
lukasz/prod-5495-preflight-check-for-quota-availability-in
Open

zreigz wants to merge 10 commits into
mainfrom
lukasz/prod-5495-preflight-check-for-quota-availability-in

Conversation

@zreigz

@zreigz zreigz commented Nov 30, 2026

Copy link
Copy Markdown
Member

Summary

Labels

Test Plan

Checklist

  • If required, I have updated the Plural documentation accordingly.
  • I have added tests to cover my changes.
  • I have added a meaningful title and summary to convey the impact of this PR to a user.
  • I have added relevant labels to this PR to help with categorization for release notes.

@linear

linear Bot commented Nov 30, 2026

Copy link
Copy Markdown

PROD-5495

@zreigz zreigz added the enhancement New feature or request label Nov 30, 2026
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 0/5 · Do not merge yet; valid AWS deployments can be blocked, and automated retries can run forever.RetriggerView in GreptileConfidence Score: 0/5

[Medium impact] The change affects AWS deployments that use the CLI setup workflow.

Do not merge yet; valid AWS deployments can be blocked, and automated retries can run forever.

Findings

  1. P1 Spot workers block deployment ▶
  2. P1 Failed deployments cannot resume ▶
  3. P1 Unused services block cloud setup ▶
  4. P1 GovCloud quota checks fail ▶
  5. P1 Approved increases are ignored ▶
  6. P1 Automated deployment never exits ▶

Summary

Adds AWS quota checks before the first management deployment.

  • AWS checks account quotas for its planned resources.
  • AWS deployments wait for required quota checks before setup.

Reviews (1) · Last reviewed commit: "preflight check for quota availability" · Reviewed by Greptile

Comment thread pkg/provider/aws_quotas.go Resolved
Comment thread pkg/up/deploy.go Resolved
Comment thread pkg/provider/aws_quotas.go Resolved
Comment thread pkg/provider/aws_quotas.go Resolved
Comment thread pkg/provider/aws_quotas.go Resolved
Comment thread pkg/up/deploy.go Resolved
zreigz and others added 9 commits November 30, 2026 15:03
Exclude Spot from on-demand vCPU, skip RDS/NLB collection in cloud mode,
use partition-aware global quota regions, fall back to defaults only on
NoSuchResource, bound retry loops, and skip re-checks when mgmt state or
the state bucket already exists.

Co-authored-by: Cursor <cursoragent@cursor.com>
Mirror the AWS battery: required mgmt checks for DSv3/cores, VNets,
public IPs, load balancers, storage accounts, AKS clusters, and
PostgreSQL Flexible Server vCores, with core-infra warnings and cloud-mode
skips. Wire AzureProvider.QuotaPreflights into the existing retry loop.

Co-authored-by: Cursor <cursoragent@cursor.com>
azcore requires a v-prefixed semver (v1.0.0), which caused
malformed moduleVersion failures during Azure quota preflights.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use supported ContainerService API versions and ManagedClusters usage
name, and read Flexible Server quotas from resourceType/flexibleServers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Treat configured max and blue/green overlap vCPU needs as blocking
quota checks so installs do not proceed on regions with only the
initial 16-vCPU floor.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the required 16-vCPU mgmt floor as the pass/fail check and stop
emitting autoscaling/blue-green headroom warnings on successful runs.
@zreigz zreigz changed the title preflight check for quota availability feat: preflight check for quota availability Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant