Skip to content

Commit ef51e7d

Browse files
authored
chore(docs): update numbered lists to be consistent (#20350)
1 parent 5119db3 commit ef51e7d

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

docs/admin/templates/extending-templates/prebuilt-workspaces.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -377,27 +377,27 @@ This keeps other provisioners available to handle user-initiated jobs.
377377

378378
#### Setup
379379

380-
1) Create a provisioner key with a prebuild tag (e.g., `is_prebuild=true`).
381-
Provisioner keys are org-scoped and their tags are inferred automatically by provisioner daemons that use the key.
382-
**Note:** `coder_workspace_tags` are cumulative, so if your template already defines provisioner tags, you will need to create the provisioner key with the same tags plus the `is_prebuild=true` tag so that prebuild jobs correctly match the dedicated prebuild pool.
383-
See [Scoped Key](../../provisioners/index.md#scoped-key-recommended) for instructions on how to create a provisioner key.
384-
385-
2) Deploy a separate provisioner pool using that key (for example, via the [Helm coder-provisioner chart](https://github.com/coder/coder/pkgs/container/chart%2Fcoder-provisioner)).
386-
Daemons in this pool will only execute jobs that include all of the tags specified in their provisioner key.
387-
See [External provisioners](../../provisioners/index.md) for environment-specific deployment examples.
388-
389-
3) Update the template to conditionally add the prebuild tag for prebuild jobs.
390-
391-
```hcl
392-
data "coder_workspace_tags" "prebuilds" {
393-
count = data.coder_workspace_owner.me.name == "prebuilds" ? 1 : 0
394-
tags = {
395-
"is_prebuild" = "true"
396-
}
397-
}
398-
```
380+
1. Create a provisioner key with a prebuild tag (e.g., `is_prebuild=true`).
381+
Provisioner keys are org-scoped and their tags are inferred automatically by provisioner daemons that use the key.
382+
**Note:** `coder_workspace_tags` are cumulative, so if your template already defines provisioner tags, you will need to create the provisioner key with the same tags plus the `is_prebuild=true` tag so that prebuild jobs correctly match the dedicated prebuild pool.
383+
See [Scoped Key](../../provisioners/index.md#scoped-key-recommended) for instructions on how to create a provisioner key.
384+
385+
1. Deploy a separate provisioner pool using that key (for example, via the [Helm coder-provisioner chart](https://github.com/coder/coder/pkgs/container/chart%2Fcoder-provisioner)).
386+
Daemons in this pool will only execute jobs that include all of the tags specified in their provisioner key.
387+
See [External provisioners](../../provisioners/index.md) for environment-specific deployment examples.
388+
389+
1. Update the template to conditionally add the prebuild tag for prebuild jobs.
390+
391+
```hcl
392+
data "coder_workspace_tags" "prebuilds" {
393+
count = data.coder_workspace_owner.me.name == "prebuilds" ? 1 : 0
394+
tags = {
395+
"is_prebuild" = "true"
396+
}
397+
}
398+
```
399399
400-
Prebuild workspaces are a special type of workspace owned by the system user `prebuilds`.
400+
Prebuild workspaces are a special type of workspace owned by the system user `prebuild`.
401401
The value `data.coder_workspace_owner.me.name` returns the name of the workspace owner, for prebuild workspaces, this value is `"prebuild"`.
402402
Because the condition evaluates based on the workspace owner, provisioning or deprovisioning prebuilds automatically applies the prebuild tag, whereas regular jobs (like workspace creation or template import) do not.
403403
@@ -411,19 +411,19 @@ Because the condition evaluates based on the workspace owner, provisioning or de
411411
To confirm that prebuild jobs are correctly routed to the new provisioner pool, use the Provisioner Jobs dashboard or the [`coder provisioner jobs list`](../../../reference/cli/provisioner_jobs_list.md) CLI command to inspect job metadata and tags.
412412
Follow these steps:
413413
414-
1) Publish the new template version.
414+
1. Publish the new template version.
415415
416-
2) Validate the status of the prebuild provisioners.
417-
Check the Provisioners page in the Coder dashboard or run the [`coder provisioner list`](../../../reference/cli/provisioner_list.md) CLI command to ensure all prebuild provisioners are up to date and the tags are properly set.
416+
1. Validate the status of the prebuild provisioners.
417+
Check the Provisioners page in the Coder dashboard or run the [`coder provisioner list`](../../../reference/cli/provisioner_list.md) CLI command to ensure all prebuild provisioners are up to date and the tags are properly set.
418418
419-
3) Wait for the prebuilds reconciliation loop to run.
420-
The loop frequency is controlled by the configuration value [`CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL`](../../../reference/cli/server.md#--workspace-prebuilds-reconciliation-interval).
421-
When the loop runs, it will provision prebuilds for the new template version and deprovision prebuilds for the previous version.
422-
Both provisioning and deprovisioning jobs for prebuilds should display the tag `is_prebuild=true`.
419+
1. Wait for the prebuilds reconciliation loop to run.
420+
The loop frequency is controlled by the configuration value [`CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL`](../../../reference/cli/server.md#--workspace-prebuilds-reconciliation-interval).
421+
When the loop runs, it will provision prebuilds for the new template version and deprovision prebuilds for the previous version.
422+
Both provisioning and deprovisioning jobs for prebuilds should display the tag `is_prebuild=true`.
423423
424-
4) Create a new workspace from a preset.
425-
Whether the preset uses a prebuild pool or not, the resulting job should not include the `is_prebuild=true` tag.
426-
This confirms that only prebuild-related jobs are routed to the dedicated prebuild provisioner pool.
424+
1. Create a new workspace from a preset.
425+
Whether the preset uses a prebuild pool or not, the resulting job should not include the `is_prebuild=true` tag.
426+
This confirms that only prebuild-related jobs are routed to the dedicated prebuild provisioner pool.
427427
428428
### Monitoring and observability
429429

0 commit comments

Comments
 (0)