Skip to content

Commit ebc4d6a

Browse files
committed
fixup! Rename allow_login_before_ready to delay_login_until_ready
1 parent 163bba0 commit ebc4d6a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/resources/agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ resource "kubernetes_pod" "dev" {
4646

4747
### Optional
4848

49-
- `allow_login_before_ready` (Boolean) Allow users to login to the workspace before the agent is ready. Note that, when enabled, the agent could still be executing the startup script and the workspace in an incomplete state when logging in.
5049
- `auth` (String) The authentication type the agent will use. Must be one of: "token", "google-instance-identity", "aws-instance-identity", "azure-instance-identity".
5150
- `connection_timeout` (Number) Time in seconds until the agent is marked as timed out when a connection with the server cannot be established. A value of zero never marks the agent as timed out.
51+
- `delay_login_until_ready` (Boolean) This option defines whether or not user logins to the workspace agent are delayed until the agent is ready. When disabled, users may see an incomplete workspace upon logging in.
5252
- `dir` (String) The starting directory when a user creates a shell session. Defaults to $HOME.
5353
- `env` (Map of String) A mapping of environment variables to set inside the workspace.
5454
- `motd_file` (String) The path to a file within the workspace containing a message to display to users when they login via SSH. A typical value would be /etc/motd.
5555
- `shutdown_script` (String) A script to run before the agent is stopped. The script should exit when it is done to signal that the workspace can be stopped.
56-
- `startup_script` (String) A script to run after the agent starts. The script should exit when it is done to signal that the agent is ready to accept connections.
56+
- `startup_script` (String) A script to run after the agent starts. The script should exit when it is done to signal that the agent is ready.
5757
- `startup_script_timeout` (Number) Time in seconds until the agent ready status is marked as timed out, this happens when the startup script has not completed (exited) in the given time.
5858
- `troubleshooting_url` (String) A URL to a document with instructions for troubleshooting problems with the agent.
5959

provider/agent_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestAgent(t *testing.T) {
3535
troubleshooting_url = "https://example.com/troubleshoot"
3636
motd_file = "/etc/motd"
3737
shutdown_script = "echo bye bye"
38-
allow_login_before_ready = false
38+
delay_login_until_ready = false
3939
}
4040
`,
4141
Check: func(state *terraform.State) error {
@@ -56,7 +56,7 @@ func TestAgent(t *testing.T) {
5656
"troubleshooting_url",
5757
"motd_file",
5858
"shutdown_script",
59-
"allow_login_before_ready",
59+
"delay_login_until_ready",
6060
} {
6161
value := resource.Primary.Attributes[key]
6262
t.Logf("%q = %q", key, value)

0 commit comments

Comments
 (0)