Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62c590d

Browse files
committed
make gen
1 parentcde02ed commit62c590d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

‎docs/resources/agent.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ resource "kubernetes_pod" "dev" {
7979
-`login_before_ready` (Boolean, Deprecated) This option defines whether or not the user can (by default) login to the workspace before it is ready. Ready means that e.g. the startup_script is done and has exited. When enabled, users may see an incomplete workspace when logging in.
8080
-`metadata` (Block List) Each "metadata" block defines a single item consisting of a key/value pair. This feature is in alpha and may break in future releases. (see[below for nested schema](#nestedblock--metadata))
8181
-`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.
82-
-`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.
82+
-`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. This option is an alias for defining a "coder_script" resource with "run_on_stop" set to true.
8383
-`shutdown_script_timeout` (Number, Deprecated) Time in seconds until the agent lifecycle status is marked as timed out during shutdown, this happens when the shutdown script has not completed (exited) in the given time.
84-
-`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.
85-
-`startup_script_behavior` (String) This option sets the behavior of the`startup_script`. When set to "blocking", the startup_script must exit before the workspace is ready. When set to "non-blocking", the startup_script may run in the background and the workspace will be ready immediately. Default is "non-blocking", although "blocking" is recommended.
84+
-`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. This option is an alias for defining a "coder_script" resource with "run_on_start" set to true.
85+
-`startup_script_behavior` (String) This option sets the behavior of the"startup_script". When set to "blocking", the startup_script must exit before the workspace is ready. When set to "non-blocking", the startup_script may run in the background and the workspace will be ready immediately. Default is "non-blocking", although "blocking" is recommended. This option is an alias for defining a "coder_script" resource with "start_blocks_login" set to true (blocking).
8686
-`startup_script_timeout` (Number, Deprecated) Time in seconds until the agent lifecycle status is marked as timed out during start, this happens when the startup script has not completed (exited) in the given time.
8787
-`troubleshooting_url` (String) A URL to a document with instructions for troubleshooting problems with the agent.
8888

‎docs/resources/script.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ Use this resource to run a script from an agent.
1919

2020
-`agent_id` (String) The "id" property of a "coder_agent" resource to associate with.
2121
-`display_name` (String) The display name of the script to display logs in the dashboard.
22-
-`script` (String) The scriptto run.
22+
-`script` (String) Thecontent of thescriptthat will be run.
2323

2424
###Optional
2525

2626
-`cron` (String) The cron schedule to run the script on. This is a cron expression.
2727
-`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/icon. Use a built-in icon with`data.coder_workspace.me.access_url + "/icon/<path>"`.
2828
-`log_path` (String) The path of a file to write the logs to. If relative, it will be appended to tmp.
29-
-`run_on_start` (Boolean) This option defines whether or not the script should run when the agent starts.
30-
-`run_on_stop` (Boolean) This option defines whether or not the script should run when the agent stops.
31-
-`start_blocks_login` (Boolean) This optiondefines whetheror not the user can (by default) login to the workspacebeforethis scriptcompletes running on start. Whenenabled, users maysee an incomplete workspace when logging in.
32-
-`timeout` (Number) Time in secondsuntil the agent lifecycle status is marked as timed out, this happens when the script has not completed (exited) in the given time.
29+
-`run_on_start` (Boolean) This option defines whether or not the script should run when the agent starts. The script should exit when it is done to signal that the agent is ready.
30+
-`run_on_stop` (Boolean) This option defines whether or not the script should run when the agent stops. The script should exit when it is done to signal that the workspace can be stopped.
31+
-`start_blocks_login` (Boolean) This optiondetermines whetherusers can log in immediately or must wait for the workspaceto finish runningthis scriptupon startup. If notenabled, users mayencounter an incomplete workspace when logging in. This option only sets the default, the user can still manually override the behavior.
32+
-`timeout` (Number) Time in secondsthat thescript is allowed to run. If the script does not complete within this time, the script is terminated and theagent lifecycle status is marked as timed out. A value of zero (default) means no timeout.
3333

3434
###Read-Only
3535

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp