Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b78dfe7
Start Release 1.20.0
greyscaled Jun 14, 2021
89a8324
Initial draft
greyscaled Jun 15, 2021
f67977e
fixup! Initial draft
greyscaled Jun 15, 2021
f5a0baa
fix: Code completion language
greyscaled Jun 15, 2021
79eff77
Edit changelog
Jun 15, 2021
81b6bd4
Merge branch 'release-1.20' of https://github.com/cdr/docs into relea…
Jun 15, 2021
00fcede
Fix formatting
Jun 15, 2021
fe60943
Update wording
Jun 15, 2021
3dc1af8
Update Templates doc (#409)
Jun 15, 2021
40c11bc
Add info re: service banners (#411)
Jun 15, 2021
b38f8dc
chore: add CODER_RUNTIME var to docs (#410)
Jun 15, 2021
c2fd20f
Fix formatting
Jun 15, 2021
fd7f221
Merge branch 'release-1.20' of https://github.com/cdr/docs into relea…
Jun 15, 2021
5822d4c
Update CODER_RUNTIME definition
Jun 16, 2021
f2e8799
update security section
jawnsy Jun 16, 2021
de23fd3
Updates based on review
Jun 16, 2021
c747ee8
Edit text
Jun 16, 2021
3534591
Remove TLS
Jun 16, 2021
fd146fe
Fix formatting
Jun 16, 2021
904f8d4
Add docs re: browser security features (#412)
Jun 16, 2021
3b20a5b
Apply suggestions from review
Jun 16, 2021
0315ce7
Apply changes based on review
Jun 16, 2021
e3560d7
fixup! Apply changes based on review
greyscaled Jun 16, 2021
bb598cc
Merge branch 'main' into release-1.20
Jun 16, 2021
0b23dea
1.20 Feat: Code Completion docs (#399)
Emyrk Jun 17, 2021
ac6205e
Add docs for nodeSelector and tolerations (#398)
Emyrk Jun 17, 2021
359b53e
Add kube annotations to wac template docs (#414)
Emyrk Jun 17, 2021
491f91e
Reword crypto APIs line
Jun 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add kube annotations to wac template docs (#414)
* Add kube annotations to wac template docs

* Fix typo

Co-authored-by: Katie Horne <katie@coder.com>
  • Loading branch information
Emyrk and Katie Horne authored Jun 17, 2021
commit 359b53e99ece74bfc9747260cbbf12b0937c70e8
42 changes: 30 additions & 12 deletions workspaces/workspaces-as-code/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ state: beta

<!-- markdownlint-disable MD044 -->

> As of Coder version *1.19*, only workspace templates version *0.2* is
supported. To update your workspace, you **must** update your templates to
version *0.2*.
> As of Coder version _1.19_, only workspace templates version _0.2_ is
> supported. To update your workspace, you **must** update your templates to
> version _0.2_.

Workspaces as code (WAC) allows you to define and create new workspaces using
**workspace templates**.
Expand Down Expand Up @@ -44,7 +44,7 @@ workspace:
type: kubernetes
specs:
kubernetes:
image:
image:
value: index.docker.io/ubuntu:18.04
container-based-vm:
value: true
Expand All @@ -60,6 +60,10 @@ workspace:
value:
com.coder.custom.hello: "hello"
com.coder.custom.world: "world"
annotations:
value:
- key: annotation-key
value: annotation-value
configure:
start:
value:
Expand All @@ -71,7 +75,8 @@ workspace:
command: "mkdir -p /home/coder/go/src/github.com/my-org"
# Be careful with keyscans like this!
- name: "Add GitHub to known hosts"
command: "sudo ssh-keyscan -H github.com >> /home/coder/.ssh/known_hosts"
command:
"sudo ssh-keyscan -H github.com >> /home/coder/.ssh/known_hosts"
- name: "Clone Git Project"
command: "git clone git@github.com:my-org/my-project.git"
continue-on-error: true
Expand All @@ -83,7 +88,7 @@ workspace:
continue-on-error: true
env:
GOPATH: /home/coder/go

dev-urls:
value:
- name: MyWebsite
Expand All @@ -108,8 +113,8 @@ workspace:

### version

The version number of the config file being used. The currently supported version
is `0.2`.
The version number of the config file being used. The currently supported
version is `0.2`.

### workspace

Expand Down Expand Up @@ -154,6 +159,19 @@ labels:

`labels` is disabled by default and must be enabled by a site admin.

#### workspace.specs.kubernetes.annotations.value

The
[Kubernetes annotations](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/)
to be added to the workspace pod.

```yaml
annotations:
value:
- key: annotation-key
value: annotation-value
```

#### workspace.specs.kubernetes.gpu-count.value

The number of GPUs to allocate to the workspace.
Expand Down Expand Up @@ -277,10 +295,10 @@ start:

#### workspace.configure.start.value[*].continue-on-error

Any step that returns a non-zero exit code will fail. By default, a
failure prevents the subsequent steps from executing. If you would like to
change this behavior, this field (which accepts a Boolean value) will allow a
step to fail and *not* half subsequent steps.
Any step that returns a non-zero exit code will fail. By default, a failure
prevents the subsequent steps from executing. If you would like to change this
behavior, this field (which accepts a Boolean value) will allow a step to fail
and _not_ halt subsequent steps.

#### workspace.configure.start.value[*].env

Expand Down