API: Add diskID and dataPath to replica
@@ -67,6 +67,8 @@ type Instance struct {
Running bool `json:"running"`
EngineImage string `json:"engineImage"`
CurrentImage string `json:"currentImage"`
+ DiskID string `json:"diskID"`
+ DataPath string `json:"dataPath"`
}
type Controller struct {
@@ -376,6 +378,8 @@ func toVolumeResource(v *longhorn.Volume, ve *longhorn.Engine, vrs []*longhorn.R
NodeID: r.Spec.NodeID,
EngineImage: r.Spec.EngineImage,
CurrentImage: r.Status.CurrentImage,
+ DiskID: r.Spec.DiskID,
+ DataPath: r.Spec.DataPath,
},
Mode: mode,
FailedAt: r.Spec.FailedAt,
