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

Commitb36d979

Browse files
authored
chore: add provisioner api version to /buildinfo (#14446)
1 parentf3c76ce commitb36d979

File tree

8 files changed

+34
-18
lines changed

8 files changed

+34
-18
lines changed

‎coderd/apidoc/docs.go‎

Lines changed: 4 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: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/coderd.go‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,15 @@ func New(options *Options) *API {
489489
api.AppearanceFetcher.Store(&f)
490490
api.PortSharer.Store(&portsharing.DefaultPortSharer)
491491
buildInfo:= codersdk.BuildInfoResponse{
492-
ExternalURL:buildinfo.ExternalURL(),
493-
Version:buildinfo.Version(),
494-
AgentAPIVersion:AgentAPIVersionREST,
495-
DashboardURL:api.AccessURL.String(),
496-
WorkspaceProxy:false,
497-
UpgradeMessage:api.DeploymentValues.CLIUpgradeMessage.String(),
498-
DeploymentID:api.DeploymentID,
499-
Telemetry:api.Telemetry.Enabled(),
492+
ExternalURL:buildinfo.ExternalURL(),
493+
Version:buildinfo.Version(),
494+
AgentAPIVersion:AgentAPIVersionREST,
495+
ProvisionerAPIVersion:proto.CurrentVersion.String(),
496+
DashboardURL:api.AccessURL.String(),
497+
WorkspaceProxy:false,
498+
UpgradeMessage:api.DeploymentValues.CLIUpgradeMessage.String(),
499+
DeploymentID:api.DeploymentID,
500+
Telemetry:api.Telemetry.Enabled(),
500501
}
501502
api.SiteHandler=site.New(&site.Options{
502503
BinFS:binFS,

‎codersdk/deployment.go‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,8 @@ type BuildInfoResponse struct {
27542754
// AgentAPIVersion is the current version of the Agent API (back versions
27552755
// MAY still be supported).
27562756
AgentAPIVersionstring`json:"agent_api_version"`
2757+
// ProvisionerAPIVersion is the current version of the Provisioner API
2758+
ProvisionerAPIVersionstring`json:"provisioner_api_version"`
27572759

27582760
// UpgradeMessage is the message displayed to users when an outdated client
27592761
// is detected.

‎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: 12 additions & 10 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
@@ -215,6 +215,7 @@ export const MockProxyLatencies: Record<string, ProxyLatencyReport> = {
215215

216216
exportconstMockBuildInfo:TypesGen.BuildInfoResponse={
217217
agent_api_version:"1.0",
218+
provisioner_api_version:"1.1",
218219
external_url:"file:///mock-url",
219220
version:"v99.999.9999+c9cdf14",
220221
dashboard_url:"https:///mock-url",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp