10000 feat(cli): allow specifying name of provisioner daemon by johnstcn · Pull Request #11077 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat(cli): allow specifying name of provisioner daemon #11077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! feat(cli): allow specifying name of provisioner daemon
  • Loading branch information
johnstcn committed Dec 7, 2023
commit 9415b6648bc16f2ca5cd12a517764f89bc64e249
1 change: 0 additions & 1 deletion docs/cli/provisionerd_start.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion enterprise/cli/provisionerdaemons.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ func (r *RootCmd) provisionerDaemonStart() *clibase.Cmd {
if len(name) > 64 {
return xerrors.Errorf("name cannot be greater than 64 characters in length")
}
if name == "" {
name = cliutil.Hostname()
}

logger := slog.Make(sloghuman.Sink(inv.Stderr))
if ok, _ := inv.ParsedFlags().GetBool("verbose"); ok {
Expand Down Expand Up @@ -217,7 +220,7 @@ func (r *RootCmd) provisionerDaemonStart() *clibase.Cmd {
Env: "CODER_PROVISIONER_DAEMON_NAME",
Description: "Name of this provisioner daemon. Defaults to the current hostname without FQDN.",
Value: clibase.StringOf(&name),
Default: cliutil.Hostname(),
Default: "",
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ OPTIONS:
-c, --cache-dir string, $CODER_CACHE_DIRECTORY (default: [cache dir])
Directory to store cached data.

--name string, $CODER_PROVISIONER_DAEMON_NAME (default: ser6)
--name string, $CODER_PROVISIONER_DAEMON_NAME
Name of this provisioner daemon. Defaults to the current hostname
without FQDN.

Expand Down
0