feat: Add deployment side config-ssh options (#6613)

* feat: Allow setting deployment wide ssh config settings
* feat: config-ssh respects deployment ssh config
* The '.' is now configurable
* Move buildinfo into deployment.go
This commit is contained in:
Steven Masley
2023-03-16 13:03:37 -05:00
committed by GitHub
parent 25e8abd63e
commit fe247c86eb
18 changed files with 642 additions and 49 deletions
+13
View File
@@ -359,6 +359,7 @@ export interface DeploymentValues {
// Named type "github.com/coder/coder/cli/clibase.Struct[[]github.com/coder/coder/codersdk.GitAuthConfig]" unknown, using "any"
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- TODO explain why this is needed
readonly git_auth?: any
readonly config_ssh?: SSHConfig
readonly config?: string
readonly write_config?: boolean
// Named type "github.com/coder/coder/cli/clibase.HostPort" unknown, using "any"
@@ -667,6 +668,18 @@ export interface Role {
readonly display_name: string
}
// From codersdk/deployment.go
export interface SSHConfig {
readonly DeploymentName: string
readonly SSHConfigOptions: string[]
}
// From codersdk/deployment.go
export interface SSHConfigResponse {
readonly hostname_prefix: string
readonly ssh_config_options: Record<string, string>
}
// From codersdk/serversentevents.go
export interface ServerSentEvent {
readonly type: ServerSentEventType