Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 1ee6745

Browse files
committed
Add GetServiceVersion for both client and exporter
1 parent 96cd113 commit 1ee6745

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

proto/jumpstarter/client/v1/client.proto

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ service ClientService {
5656
option (google.api.http) = {delete: "/v1/{name=namespaces/*/leases/*}"};
5757
option (google.api.method_signature) = "name";
5858
}
59+
60+
rpc GetServiceVersion(google.protobuf.Empty) returns (GetServiceVersionResponse) {
61+
option (google.api.http) = {get: "/v1/version"};
62+
option (google.api.method_signature) = "";
63+
}
5964
}
6065

6166
message Exporter {
@@ -168,3 +173,9 @@ message DeleteLeaseRequest {
168173
(google.api.resource_reference) = {type: "jumpstarter.dev/Lease"}
169174
];
170175
}
176+
177+
message GetServiceVersionResponse {
178+
string version = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
179+
string build_date = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
180+
string git_commit = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
181+
}

proto/jumpstarter/v1/jumpstarter.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import "jumpstarter/v1/common.proto";
1313

1414
// A service where a exporter can connect to make itself available
1515
service ControllerService {
16+
rpc GetServiceVersion(google.protobuf.Empty) returns (GetServiceVersionResponse);
1617
// Exporter registration
1718
rpc Register(RegisterRequest) returns (RegisterResponse);
1819

@@ -228,3 +229,9 @@ message GetStatusResponse {
228229
ExporterStatus status = 1;
229230
optional string message = 2;
230231
}
232+
233+
message GetServiceVersionResponse {
234+
string version = 1;
235+
string build_date = 2;
236+
string git_commit = 3;
237+
}

0 commit comments

Comments
 (0)