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

Commit2424873

Browse files
authored
feat: add host suffix to /api/v2/deployment/ssh (#17269)
Adds `HostnameSuffix` to ssh config API and deprecates `HostnamePrefix`. We will still support setting and using the prefix for some time.
1 parent87d9ff0 commit2424873

File tree

8 files changed

+27
-6
lines changed

8 files changed

+27
-6
lines changed

‎cli/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -653,6 +653,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
653653
SSHConfig: codersdk.SSHConfigResponse{
654654
HostnamePrefix:vals.SSHConfig.DeploymentName.String(),
655655
SSHConfigOptions:configSSHOptions,
656+
HostnameSuffix:vals.WorkspaceHostnameSuffix.String(),
656657
},
657658
AllowWorkspaceRenames:vals.AllowWorkspaceRenames.Value(),
658659
Entitlements:entitlements.New(),

‎coderd/apidoc/docs.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/apidoc/swagger.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎codersdk/deployment.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3393,7 +3393,12 @@ type DeploymentStats struct {
33933393
}
33943394

33953395
typeSSHConfigResponsestruct {
3396-
HostnamePrefixstring`json:"hostname_prefix"`
3396+
// HostnamePrefix is the prefix we append to workspace names for SSH hostnames.
3397+
// Deprecated: use HostnameSuffix instead.
3398+
HostnamePrefixstring`json:"hostname_prefix"`
3399+
3400+
// HostnameSuffix is the suffix to append to workspace names for SSH hostnames.
3401+
HostnameSuffixstring`json:"hostname_suffix"`
33973402
SSHConfigOptionsmap[string]string`json:"ssh_config_options"`
33983403
}
33993404

‎docs/reference/api/general.md

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

‎docs/reference/api/schemas.md

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎site/src/api/typesGenerated.ts

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

‎site/src/testHelpers/entities.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,6 +3032,7 @@ export const MockDeploymentStats: TypesGen.DeploymentStats = {
30323032
exportconstMockDeploymentSSH:TypesGen.SSHConfigResponse={
30333033
hostname_prefix:" coder.",
30343034
ssh_config_options:{},
3035+
hostname_suffix:"coder",
30353036
};
30363037

30373038
exportconstMockWorkspaceAgentLogs:TypesGen.WorkspaceAgentLog[]=[

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp