-
Notifications
You must be signed in to change notification settings - Fork 928
feat: add template setting to require active template version #10277
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
7b0bf6d
to
508a84d
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.
Couple nits in the comments, but I don't need to review again; LGTM
coderd/coderdtest/coderdtest.go
Outdated
req := codersdk.CreateWorkspaceBuildRequest{ | ||
// TODO (JonA): I get this is for convenience but we should probably | ||
// change this. Tripped me up why my test was passing when it shouldn't | ||
// have. |
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 don't really understand this comment --- change how?
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.
Currently the behavior when calling MustTransitionWorkspace
is to submit a workspace build with the template's active version as opposed to the the workspace's template version. That's kinda at odds with how it behaves in production.
This PR adds the backend plumbing to support enforcing workspaces use the active template version when buildling.
This setting does not apply to template admins
fixes #7466