-
Notifications
You must be signed in to change notification settings - Fork 279
Bump version for envd, require it for nfs #2385
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -316,7 +316,7 @@ var errVolumesNotSupported = errors.New("volumes are not supported") | |
|
|
||
| var errNoEnvdVersion = errors.New("no envd version provided") | ||
|
|
||
| const minEnvdVersionForVolumes = "0.5.8" | ||
| const minEnvdVersionForVolumes = "0.5.12" | ||
|
Comment on lines
316
to
+319
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟣 Pre-existing bug: When a template has no recorded envd version (nil/empty Extended reasoning...Bug AnalysisWhat the bug is: In The specific code path: When a user submits a sandbox creation request with volume mounts and their template's Why existing code doesn't prevent it: The three error checks are each exact sentinel comparisons or type assertions. Impact: Users whose templates were built without a recorded envd version receive an opaque HTTP 500 that gives no hint about the root cause or what to do. The correct behavior — returning HTTP 400 with a message like "template must be rebuilt" — already exists for the analogous How to fix it: Add a check immediately after (or before) the if errors.Is(err, errNoEnvdVersion) {
a.sendAPIStoreError(c, http.StatusBadRequest, "Template must be rebuilt to support volume mounts (no envd version recorded).")
return
}Step-by-step proof:
|
||
|
|
||
| func convertAPIVolumesToOrchestratorVolumes(ctx context.Context, sqlClient *sqlcdb.Client, featureFlags featureFlagsClient, teamID uuid.UUID, volumeMounts []api.SandboxVolumeMount, env *queries.EnvBuild) ([]*orchestrator.SandboxVolumeMount, error) { | ||
| // are any volumes configured? | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| package pkg | ||
|
|
||
| const Version = "0.5.11" | ||
| const Version = "0.5.12" |
Uh oh!
There was an error while loading. Please reload this page.