-
Notifications
You must be signed in to change notification settings - Fork 874
chore: add prebuild docs #17580
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
base: main
Are you sure you want to change the base?
chore: add prebuild docs #17580
Conversation
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
93019ad
to
6b75c2e
Compare
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
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.
Thanks a lot for your changes @EdwardAngert! This reads much better now.
See my edits: 1c6aee4
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
3. A prebuilt workspace is in eligible state | ||
- User creates a new workspace via the API or the Coder web UI. | ||
- User selected a preset which has been configured for prebuilds. | ||
- Prebuilt workspace is in eligible state. |
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.
- Prebuilt workspace is in eligible state. | |
- Prebuilt workspace is in an eligible state. |
New prebuilt workspaces will be provisioned for the active template version. | ||
|
||
Invalidating prebuilt workspaces is useful when your template version does not change but a referenced dependency does, | ||
You can invalidate a prebuilt workspace your template version does not change but a referenced dependency does, |
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.
You can invalidate a prebuilt workspace your template version does not change but a referenced dependency does, | |
You may want to invalidate a prebuilt workspace when your template version does not change but a referenced dependency does, |
@@ -139,7 +140,7 @@ eliminating the value of the prior pre-provisioning. | |||
Should this occur when a prebuilt workspace is claimed, all Template Admins will receive a notification which will | |||
link them to the build logs to investigate which resource was being replaced. | |||
|
|||
 | |||
 |
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.
 | |
 |
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
cc9c029
to
4b3b0a9
Compare
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
Instead of creating a new workspace when a developer requests one, if a workspace matches a preset defined in the | ||
template parameters, Coder assigns an existing instance, reducing setup time significantly. | ||
The template administrator configures a template to be available with prebuilt workspaces, and then when a developer creates | ||
a new workspace with matching parameters, Coder assigns them an existing prebuilt instance. |
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.
a new workspace with matching parameters, Coder assigns them an existing prebuilt instance. | |
a new workspace with matching a preset, Coder assigns them an existing prebuilt instance. |
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.
a new workspace with matching parameters, Coder assigns them an existing prebuilt instance. | |
a new workspace that matches the preset, Coder assigns them an existing prebuilt instance. |
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
|
||
Prebuilt workspaces can only be utilized by the default organization. | ||
_Note: In future releases, we will allow operators to invalidate their prebuilt workspaces programmatically._ |
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.
This is oddly out of place now.
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
This is obviously undesirable because the prebuilt workspace will now have to provision _again_, while the user waits, | ||
eliminating the value of the prior pre-provisioning. | ||
1. The workspace is initially created with values from the `prebuilds` user and a random name. | ||
1. After claiming, the workspace owner and name change, which Terraform sees as configuration drift. |
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.
This is too specific. The owner & name change are two of a very large set of possible changes.
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
docs/admin/templates/extending-templates/prebuilt-workspaces.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Danny Kopping <danny@coder.com>
|
||
Expand each item in this list for more information about the stage: | ||
|
||
1. <details><summary>The prebuilt workspace is provisioned.</summary> |
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 know how keen I am on this yet.
The goal was to summarize the lifecycle in a way that people can see easily and drill down into for more details if they want. I'm going to try another edit of the summaries to see if I can get it to work, and if it doesn't, I'll revert to separate headings
Partially addresses coder/internal#593