Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions docs/resources/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "kubernetes_pod" "dev" {
container {
command = ["sh", "-c", coder_agent.dev.init_script]
env {
name = "CODER_TOKEN"
name = "CODER_AGENT_TOKEN"
value = coder_agent.dev.token
}
}
Expand All @@ -55,6 +55,6 @@ resource "kubernetes_pod" "dev" {
### Read-Only

- `init_script` (String) Run this script on startup of an instance to initialize the agent.
- `token` (String) Set the environment variable "CODER_TOKEN" with this token to authenticate an agent.
- `token` (String) Set the environment variable "CODER_AGENT_TOKEN" with this token to authenticate an agent.


2 changes: 1 addition & 1 deletion examples/resources/coder_agent/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resource "kubernetes_pod" "dev" {
container {
command = ["sh", "-c", coder_agent.dev.init_script]
env {
name = "CODER_TOKEN"
name = "CODER_AGENT_TOKEN"
value = coder_agent.dev.token
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func New() *schema.Provider {
},
"token": {
ForceNew: true,
Description: `Set the environment variable "CODER_TOKEN" with this token to authenticate an agent.`,
Description: `Set the environment variable "CODER_AGENT_TOKEN" with this token to authenticate an agent.`,
Type: schema.TypeString,
Computed: true,
},
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy