-
Notifications
You must be signed in to change notification settings - Fork 946
validate container configuration in wrangler #9774
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 3828bee The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small nit. But this looks good.
packages/wrangler/src/cloudchamber/instancetype/instancetype.ts
Outdated
Show resolved
Hide resolved
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i noticed that the instance type is not being used in ensureDiskLimits
when building and validating a container, is that intentional? i notice this is mostly targeting cloudchamber-only commands
dcf3607
to
2a08e6d
Compare
@emily-shen thanks for the catch! I updated it so that
the changes to |
packages/wrangler/src/cloudchamber/instancetype/instancetype.ts
Outdated
Show resolved
Hide resolved
packages/wrangler/src/cloudchamber/instancetype/instancetype.ts
Outdated
Show resolved
Hide resolved
packages/wrangler/src/cloudchamber/instancetype/instancetype.ts
Outdated
Show resolved
Hide resolved
packages/wrangler/src/cloudchamber/instancetype/instancetype.ts
Outdated
Show resolved
Hide resolved
6cddd7a
to
bf6c8c9
Compare
packages/wrangler/src/cloudchamber/instance-type/instance-type.ts
Outdated
Show resolved
Hide resolved
2550bc0
to
2a45f1f
Compare
2a45f1f
to
76c59df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for containers (as opposed to the cloudchamber only commands) could we move this check to cloudchamber/build.ts in buildAndMaybePush? this way containers build -p also gets this. Also, the existing ensureDiskLimits seems to overlap with this, so it would be good to consolidate everything.
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
16a3862
to
10af50a
Compare
Refactored the PR to update functionality. Here's a summary of the goal of these changes:
|
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
Co-authored-by: emily-shen <69125074+emily-shen@users.noreply.github.com>
Fixes CC-5513
Validate instance type against account limits to give early feedback to the user.