mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add customizable upgrade message on client/server version mismatch (#11587)
This commit is contained in:
@@ -188,6 +188,7 @@ type DeploymentValues struct {
|
||||
WebTerminalRenderer clibase.String `json:"web_terminal_renderer,omitempty" typescript:",notnull"`
|
||||
AllowWorkspaceRenames clibase.Bool `json:"allow_workspace_renames,omitempty" typescript:",notnull"`
|
||||
Healthcheck HealthcheckConfig `json:"healthcheck,omitempty" typescript:",notnull"`
|
||||
CLIUpgradeMessage clibase.String `json:"cli_upgrade_message,omitempty" typescript:",notnull"`
|
||||
|
||||
Config clibase.YAMLConfigPath `json:"config,omitempty" typescript:",notnull"`
|
||||
WriteConfig clibase.Bool `json:"write_config,omitempty" typescript:",notnull"`
|
||||
@@ -1780,6 +1781,16 @@ when required by your organization's security policy.`,
|
||||
Value: &c.SSHConfig.SSHConfigOptions,
|
||||
Hidden: false,
|
||||
},
|
||||
{
|
||||
Name: "CLI Upgrade Message",
|
||||
Description: "The upgrade message to display to users when a client/server mismatch is detected. By default it instructs users to update using 'curl -L https://coder.com/install.sh | sh'.",
|
||||
Flag: "cli-upgrade-message",
|
||||
Env: "CODER_CLI_UPGRADE_MESSAGE",
|
||||
YAML: "cliUpgradeMessage",
|
||||
Group: &deploymentGroupClient,
|
||||
Value: &c.CLIUpgradeMessage,
|
||||
Hidden: false,
|
||||
},
|
||||
{
|
||||
Name: "Write Config",
|
||||
Description: `
|
||||
@@ -2052,6 +2063,10 @@ type BuildInfoResponse struct {
|
||||
// AgentAPIVersion is the current version of the Agent API (back versions
|
||||
// MAY still be supported).
|
||||
AgentAPIVersion string `json:"agent_api_version"`
|
||||
|
||||
// UpgradeMessage is the message displayed to users when an outdated client
|
||||
// is detected.
|
||||
UpgradeMessage string `json:"upgrade_message"`
|
||||
}
|
||||
|
||||
type WorkspaceProxyBuildInfo struct {
|
||||
|
||||
Reference in New Issue
Block a user