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

Commitd79a7ad

Browse files
authored
docs: advise against sharedCODER_CACHE_DIRECTORY dir usage in note (#14216)
1 parentf50e1d5 commitd79a7ad

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

‎cli/testdata/coder_server_--help.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ OPTIONS:
2222
--cache-dir string, $CODER_CACHE_DIRECTORY (default: [cache dir])
2323
The directory to cache temporary files. If unspecified and
2424
$CACHE_DIRECTORY is set, it will be used for compatibility with
25-
systemd.
25+
systemd. This directory is NOT safe to be configured as a shared
26+
directory across coderd/provisionerd replicas.
2627

2728
--disable-owner-workspace-access bool, $CODER_DISABLE_OWNER_WORKSPACE_ACCESS
2829
Remove the permission for the 'owner' role to have workspace execution

‎cli/testdata/server-config.yaml.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,8 @@ updateCheck: false
414414
# (default: <unset>, type: bool)
415415
enableSwagger: false
416416
# The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is
417-
# set, it will be used for compatibility with systemd.
417+
# set, it will be used for compatibility with systemd. This directory is NOT safe
418+
# to be configured as a shared directory across coderd/provisionerd replicas.
418419
# (default: [cache dir], type: string)
419420
cacheDir: [cache dir]
420421
# Controls whether data will be stored in an in-memory database.

‎codersdk/deployment.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,13 +1977,14 @@ when required by your organization's security policy.`,
19771977
Annotations: serpent.Annotations{}.Mark(annotationExternalProxies,"true"),
19781978
},
19791979
{
1980-
Name:"Cache Directory",
1981-
Description:"The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd.",
1982-
Flag:"cache-dir",
1983-
Env:"CODER_CACHE_DIRECTORY",
1984-
Default:DefaultCacheDir(),
1985-
Value:&c.CacheDir,
1986-
YAML:"cacheDir",
1980+
Name:"Cache Directory",
1981+
Description:"The directory to cache temporary files. If unspecified and $CACHE_DIRECTORY is set, it will be used for compatibility with systemd. "+
1982+
"This directory is NOT safe to be configured as a shared directory across coderd/provisionerd replicas.",
1983+
Flag:"cache-dir",
1984+
Env:"CODER_CACHE_DIRECTORY",
1985+
Default:DefaultCacheDir(),
1986+
Value:&c.CacheDir,
1987+
YAML:"cacheDir",
19871988
},
19881989
{
19891990
Name:"In Memory Database",

‎docs/cli/server.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎enterprise/cli/testdata/coder_server_--help.golden

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ OPTIONS:
2323
--cache-dir string, $CODER_CACHE_DIRECTORY (default: [cache dir])
2424
The directory to cache temporary files. If unspecified and
2525
$CACHE_DIRECTORY is set, it will be used for compatibility with
26-
systemd.
26+
systemd. This directory is NOT safe to be configured as a shared
27+
directory across coderd/provisionerd replicas.
2728

2829
--disable-owner-workspace-access bool, $CODER_DISABLE_OWNER_WORKSPACE_ACCESS
2930
Remove the permission for the 'owner' role to have workspace execution

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp