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

Commit89fd294

Browse files
authored
feat: expose support links as env variables (#11697)
1 parentbf0a6fc commit89fd294

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ OPTIONS:
5454
The algorithm to use for generating ssh keys. Accepted values are
5555
"ed25519", "ecdsa", or "rsa4096".
5656

57+
--support-links struct[[]codersdk.LinkConfig], $CODER_SUPPORT_LINKS
58+
Support links to display in the top right drop down menu.
59+
5760
--update-check bool, $CODER_UPDATE_CHECK (default: false)
5861
Periodically check for new releases of Coder and inform the owner. The
5962
check is performed once per day.

‎codersdk/deployment.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,11 +1793,11 @@ Write out the current server config as YAML to stdout.`,
17931793
{
17941794
Name:"Support Links",
17951795
Description:"Support links to display in the top right drop down menu.",
1796+
Env:"CODER_SUPPORT_LINKS",
1797+
Flag:"support-links",
17961798
YAML:"supportLinks",
17971799
Value:&c.Support.Links,
1798-
// The support links are hidden until they are defined in the
1799-
// YAML.
1800-
Hidden:true,
1800+
Hidden:false,
18011801
},
18021802
{
18031803
// Env handling is done in cli.ReadGitAuthFromEnvironment

‎codersdk/deployment_test.go‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ func TestDeploymentValues_HighlyConfigurable(t *testing.T) {
6565
"External Token Encryption Keys": {
6666
yaml:true,
6767
},
68-
// These complex objects should be configured through YAML.
69-
"Support Links": {
70-
flag:true,
71-
env:true,
72-
},
7368
"External Auth Providers": {
7469
// Technically External Auth Providers can be provided through the env,
7570
// but bypassing clibase. See cli.ReadExternalAuthProvidersFromEnv.

‎docs/cli/server.md‎

Lines changed: 10 additions & 0 deletions
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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ OPTIONS:
5555
The algorithm to use for generating ssh keys. Accepted values are
5656
"ed25519", "ecdsa", or "rsa4096".
5757

58+
--support-links struct[[]codersdk.LinkConfig], $CODER_SUPPORT_LINKS
59+
Support links to display in the top right drop down menu.
60+
5861
--update-check bool, $CODER_UPDATE_CHECK (default: false)
5962
Periodically check for new releases of Coder and inform the owner. The
6063
check is performed once per day.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp