Skip to content

Commit f59f047

Browse files
committed
allow to take and check snapshot status when using pvc
1 parent 9a8151d commit f59f047

File tree

11 files changed

+1227
-539
lines changed

11 files changed

+1227
-539
lines changed

components/ws-manager-api/core.proto

Lines changed: 13 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+
// checkVolumeSnapshotReady checks if a volume snapshot (PVC) is ready
48+
rpc CheckVolumeSnapshotReady(CheckVolumeSnapshotReadyRequest) returns (CheckVolumeSnapshotReadyResponse) {}
49+
4750
// UpdateSSHKey update ssh keys
4851
rpc UpdateSSHKey(UpdateSSHKeyRequest) returns (UpdateSSHKeyResponse) {}
4952

@@ -239,6 +242,16 @@ message DeleteVolumeSnapshotResponse {
239242
bool was_deleted = 1;
240243
}
241244

245+
message CheckVolumeSnapshotReadyRequest {
246+
// ID is the name of volume snapshot
247+
string id = 1;
248+
}
249+
250+
message CheckVolumeSnapshotReadyResponse {
251+
// ready will be true if snapshot is ready to be used
252+
bool ready = 1;
253+
}
254+
242255
enum AdmissionLevel {
243256
// WORKSPACE_ADMIT_OWNER_ONLY means the workspace can only be accessed using the owner token
244257
ADMIT_OWNER_ONLY = 0;

0 commit comments

Comments
 (0)