Skip to content

Commit 7d6de84

Browse files
committed
proto: update GetVolumeReplicationInfo RPC proto definition
update GetVolumeReplicationInfo RPC proto definition as per the csi-addons/spec changes to include Status and StatusMessage fields in the response Signed-off-by: Nikhil-Ladha <nikhilladha1999@gmail.com>
1 parent 0882071 commit 7d6de84

File tree

2 files changed

+174
-57
lines changed

2 files changed

+174
-57
lines changed

internal/proto/replication.pb.go

Lines changed: 151 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/proto/replication.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,29 @@ message GetVolumeReplicationInfoResponse{
195195
// The value of this field MUST NOT be negative.
196196
// This field is OPTIONAL.
197197
int64 last_sync_bytes = 3;
198+
// Represents the type of replication status that can be returned
199+
// by a storage vendor.
200+
enum Status {
201+
// UNKNOWN indicates that the SP does not know the current
202+
// replication status.
203+
UNKNOWN = 0;
204+
// HEALTHY indicates that the replication is working properly.
205+
HEALTHY = 1;
206+
// DEGRADED indicates that the replication has stopped working
207+
// and it may require user intervention.
208+
DEGRADED = 2;
209+
// ERROR indicates that there is an error in replication
210+
// and it may require user intervention.
211+
ERROR = 3;
212+
}
213+
// Represents the current replication status as reported by
214+
// the backend storage system.
215+
// This field is REQUIRED.
216+
Status status = 4;
217+
// Contains a human readable message that describes the current
218+
// state of replication
219+
// This field is OPTIONAL.
220+
string status_message = 5;
198221
}
199222

200223
// Specifies what source the replication will be created from. One of the

0 commit comments

Comments
 (0)