Skip to content

Commit ed95dae

Browse files
committed
allow to take and check snapshot status when using pvc
1 parent 17d51f5 commit ed95dae

File tree

11 files changed

+1274
-541
lines changed

11 files changed

+1274
-541
lines changed

components/ws-manager-api/core.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ service WorkspaceManager {
4444
// deleteVolumeSnapshot asks ws-manager to delete specific volume snapshot and delete source from cloud provider as well
4545
rpc DeleteVolumeSnapshot(DeleteVolumeSnapshotRequest) returns (DeleteVolumeSnapshotResponse) {}
4646

47+
// GetVolumeSnapshot returns the information about requested volume snapshot
48+
rpc GetVolumeSnapshot(GetVolumeSnapshotRequest) returns (GetVolumeSnapshotResponse) {}
49+
4750
// UpdateSSHKey update ssh keys
4851
rpc UpdateSSHKey(UpdateSSHKeyRequest) returns (UpdateSSHKeyResponse) {}
4952

@@ -242,6 +245,18 @@ message DeleteVolumeSnapshotResponse {
242245
bool was_deleted = 1;
243246
}
244247

248+
message GetVolumeSnapshotRequest {
249+
// ID is the name of volume snapshot
250+
string id = 1;
251+
}
252+
253+
message GetVolumeSnapshotResponse {
254+
// id of this volume snapshot
255+
string id = 1;
256+
// ready will be true if snapshot is ready to be used
257+
bool ready = 2;
258+
}
259+
245260
enum AdmissionLevel {
246261
// WORKSPACE_ADMIT_OWNER_ONLY means the workspace can only be accessed using the owner token
247262
ADMIT_OWNER_ONLY = 0;

0 commit comments

Comments
 (0)