Skip to content

Commit

Permalink
fix: Add "arm" architecture (#18)
Browse files Browse the repository at this point in the history
This allows for 32-bit arm to be used with Coder.
  • Loading branch information
kylecarbs authored May 9, 2022
1 parent 4531753 commit 6469251
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/workspace.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "kubernetes_pod" "dev" {

### Read-Only

- `access_url` (String) The access URL of the Coder deployment provisioning this workspace.
- `id` (String) UUID of the workspace.
- `name` (String) Name of the workspace.
- `owner` (String) Username of the workspace owner.
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "kubernetes_pod" "dev" {

### Required

- `arch` (String) The architecture the agent will run on. Must be one of: "amd64", "arm64".
- `arch` (String) The architecture the agent will run on. Must be one of: "amd64", "armv7", "arm64".
- `os` (String) The operating system the agent will run on. Must be one of: "linux", "darwin", or "windows".

### Optional
Expand Down
4 changes: 2 additions & 2 deletions docs/resources/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ resource "coder_app" "intellij" {

### Optional

- `command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command.
- `command` (String) A command to run in a terminal opening this app. In the web, this will open in a new tab. In the CLI, this will SSH and execute the command. Either "command" or "target" may be specified, but not both.
- `icon` (String) A URL to an icon that will display in the dashboard. View built-in icons here: https://github.com/coder/coder/tree/main/site/static/icons. Use a built-in icon with `data.coder_workspace.me.access_url + "/icons/<path>"`.
- `id` (String) The ID of this resource.
- `name` (String) A display name to identify the app.
- `target` (String) A URL to be proxied to from inside the workspace.
- `target` (String) A URL to be proxied to from inside the workspace. Either "command" or "target" may be specified, but not both.


4 changes: 2 additions & 2 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func New() *schema.Provider {
Type: schema.TypeString,
ForceNew: true,
Required: true,
Description: `The architecture the agent will run on. Must be one of: "amd64", "arm64".`,
ValidateFunc: validation.StringInSlice([]string{"amd64", "arm64"}, false),
Description: `The architecture the agent will run on. Must be one of: "amd64", "armv7", "arm64".`,
ValidateFunc: validation.StringInSlice([]string{"amd64", "armv7", "arm64"}, false),
},
"auth": {
Type: schema.TypeString,
Expand Down

0 comments on commit 6469251

Please sign in to comment.