Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b36d979

Browse files
authored
chore: add provisioner api version to /buildinfo (coder#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

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/coderd.go

+9-8
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

+2
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

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/schemas.md

+12-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/typesGenerated.ts

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/testHelpers/entities.ts

+1
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)