Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proto: update rpc to include other volrep info
Browse files Browse the repository at this point in the history
This commit updates the getvolumereplicationinfo
rpc to include lastsyncbytes and lastsyncduration.

Signed-off-by: yati1998 <[email protected]>
yati1998 committed Jun 12, 2023
1 parent 93848ea commit 85619e2
Showing 7 changed files with 103 additions and 71 deletions.
2 changes: 1 addition & 1 deletion internal/proto/networkfence.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/proto/networkfence_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/proto/reclaimspace.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/proto/reclaimspace_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

161 changes: 95 additions & 66 deletions internal/proto/replication.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions internal/proto/replication.proto
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
syntax = "proto3";
package proto;

import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";

option go_package = "github.com/csi-addons/kubernetes-csi-addons/internal/proto";
@@ -206,4 +207,6 @@ message GetVolumeReplicationInfoResponse{
// Holds the last sync time.
// This field is REQUIRED.
.google.protobuf.Timestamp last_sync_time = 1;
.google.protobuf.Duration last_sync_duration = 2;
int64 last_sync_bytes = 3;
}
2 changes: 1 addition & 1 deletion internal/proto/replication_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85619e2

Please sign in to comment.