Skip to content

Commit b36d979

Browse files
authored
chore: add provisioner api version to /buildinfo (#14446)
1 parent f3c76ce commit b36d979

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 about customizing 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 about customizing 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
AgentAPIVersion string `json:"agent_api_version"`
2757+
// ProvisionerAPIVersion is the current version of the Provisioner API
2758+
ProvisionerAPIVersion string `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 about customizing 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 about customizing 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 about customizing 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
export const MockBuildInfo: 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy