api: expose engine field RequestedBackupRestore
@@ -80,6 +80,7 @@ type Controller struct {
Instance
Endpoint string `json:"endpoint"`
LastRestoredBackup string `json:"lastRestoredBackup"`
+ RequestedBackupRestore string `json:"requestedBackupRestore"`
}
type Replica struct {
@@ -493,6 +494,7 @@ func toVolumeResource(v *longhorn.Volume, ves []*longhorn.Engine, vrs []*longhor
},
Endpoint: e.Status.Endpoint,
LastRestoredBackup: e.Status.LastRestoredBackup,
+ RequestedBackupRestore: e.Spec.RequestedBackupRestore,
})
if e.Spec.NodeID == v.Spec.NodeID {
ve = e
