Skip to content

docs: fix prebuilt-workspaces example syntax and defaults - #28088

Draft
nickvigilante wants to merge 1 commit into
mainfrom
vigilante/docs-644-docs-fix-prebuilt-workspaces-examples-hcl-block-reconcile
Draft

docs: fix prebuilt-workspaces example syntax and defaults#28088
nickvigilante wants to merge 1 commit into
mainfrom
vigilante/docs-644-docs-fix-prebuilt-workspaces-examples-hcl-block-reconcile

Conversation

@nickvigilante

Copy link
Copy Markdown
Contributor

What

Three fixes to docs/admin/templates/extending-templates/prebuilt-workspaces.md surfaced by the runtime drift sweep.

  1. Invalid HCL (line 129): parameters { ... } is block syntax, but coder_workspace_preset.parameters is a map(string) attribute. Changed to parameters = { ... }, which matches every other coder_workspace_preset example in the docs and passes terraform validate.
  2. Wrong default (line 251): CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL is documented as "15 seconds"; the actual default is 1m0s per the generated server reference (docs/reference/cli/server.md).
  3. jq on table output (lines 329, 341): coder provisioner jobs list emits table output by default, so jq -r '.[].id' fails to parse. Added --output json before the pipe in both cancel snippets.

All verified against main (repo preset examples, helm/CLI references).

Linear: DOCS-644

This PR was created with AI assistance (Coder Agents).

coder_workspace_preset.parameters is a map(string) attribute, so it needs 'parameters = {}' not the block form 'parameters {}' (matches every other preset example in the docs and passes terraform validate). CODER_WORKSPACE_PREBUILDS_RECONCILIATION_INTERVAL defaults to 1m0s, not 15 seconds, per the generated server reference. 'coder provisioner jobs list' emits table output by default, so add '--output json' before piping to jq in the two cancel snippets. Fixes DOCS-644.

> This PR was created with AI assistance (Coder Agents).
@linear-code

linear-code Bot commented Aug 12, 2026

Copy link
Copy Markdown

DOCS-644

@github-actions

Copy link
Copy Markdown

Docs preview

Check off each page once it's been reviewed. If a page changes in a later push, its checkbox clears automatically so it gets a fresh look. Pages not yet wired into the docs navigation aren't listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant