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.
This commit is contained in:
Spike Curtis
2025-04-07 11:57:10 +04:00
committed by GitHub
parent 87d9ff0973
commit 24248736ac
8 changed files with 27 additions and 6 deletions
+6 -1
View File
@@ -3393,7 +3393,12 @@ type DeploymentStats struct {
}
type SSHConfigResponse struct {
HostnamePrefix string `json:"hostname_prefix"`
// HostnamePrefix is the prefix we append to workspace names for SSH hostnames.
// Deprecated: use HostnameSuffix instead.
HostnamePrefix string `json:"hostname_prefix"`
// HostnameSuffix is the suffix to append to workspace names for SSH hostnames.
HostnameSuffix string `json:"hostname_suffix"`
SSHConfigOptions map[string]string `json:"ssh_config_options"`
}