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

Commit87bcfd6

Browse files
committed
provisioner: rename env vars to CODER_PROVISIONER_CACHE_*\n\n- CODER_PROVISIONER_CACHE_CLEANUP\n- CODER_PROVISIONER_CACHE_RETENTION\n\nUpdate docs accordingly.\n\nCo-authored-by: angrycub <464492+angrycub@users.noreply.github.com>
1 parent6e326c4 commit87bcfd6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎docs/tutorials/best-practices/speed-up-templates.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Ensure that this directory is set to a location on disk which will persist acros
167167

168168
Provisioner cache cleanup can be controlled at runtime via environment variables (on both built-in and external provisioners):
169169

170-
-`CODER_TERRAFORM_PLUGIN_CLEANUP` (default`true`): enable or disable cleanup.
171-
-`CODER_TERRAFORM_PLUGIN_RETENTION` (default`720h`): age threshold for considering aprovider plugin stale, parsed with Go's`time.ParseDuration` (example:`720h`~30 days).
170+
-`CODER_PROVISIONER_CACHE_CLEANUP` (default`true`): enable or disable cleanup.
171+
-`CODER_PROVISIONER_CACHE_RETENTION` (default`720h`): age threshold for considering acached provider stale, parsed with Go's`time.ParseDuration` (example:`720h`~30 days).
172172

173173
If unset, cleanup runs with a default 30-day retention.

‎provisioner/terraform/serve.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ func systemBinary(ctx context.Context) (*systemBinaryDetails, error) {
9090
// Serve starts a dRPC server on the provided transport speaking Terraform provisioner.
9191
funcServe(ctx context.Context,options*ServeOptions)error {
9292
// Optional environment overrides for plugin cache cleanup behavior.
93-
ifv,ok:=os.LookupEnv("CODER_TERRAFORM_PLUGIN_CLEANUP");ok {
93+
ifv,ok:=os.LookupEnv("CODER_PROVISIONER_CACHE_CLEANUP");ok {
9494
ifb,err:=strconv.ParseBool(strings.TrimSpace(v));err==nil {
9595
terraformPluginCleanupEnabled=b
9696
}
9797
}
98-
ifv,ok:=os.LookupEnv("CODER_TERRAFORM_PLUGIN_RETENTION");ok {
98+
ifv,ok:=os.LookupEnv("CODER_PROVISIONER_CACHE_RETENTION");ok {
9999
ifd,err:=time.ParseDuration(strings.TrimSpace(v));err==nil {
100100
staleTerraformPluginRetention=d
101101
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp