Skip to content

Commit 0a9773c

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

File tree

11 files changed

+1257
-569
lines changed

11 files changed

+1257
-569
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+
// CheckVolumeSnapshotIsReady checks if a volume snapshot (PVC) is ready
48+
rpc CheckVolumeSnapshotIsReady(CheckVolumeSnapshotIsReadyRequest) returns (CheckVolumeSnapshotIsReadyResponse) {}
49+
4750
// UpdateSSHKey update ssh keys
4851
rpc UpdateSSHKey(UpdateSSHKeyRequest) returns (UpdateSSHKeyResponse) {}
4952

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

248+
message CheckVolumeSnapshotIsReadyRequest {
249+
// ID is the name of volume snapshot
250+
string id = 1;
251+
}
252+
253+
message CheckVolumeSnapshotIsReadyResponse {
254+
// ready will be true if snapshot is ready to be used
255+
bool ready = 1;
256+
}
257+
245258
enum AdmissionLevel {
246259
// WORKSPACE_ADMIT_OWNER_ONLY means the workspace can only be accessed using the owner token
247260
ADMIT_OWNER_ONLY = 0;

0 commit comments

Comments
 (0)