api: Expose instance manager name for engine and replicas
@@ -87,6 +87,7 @@ type Instance struct {
Running bool `json:"running"`
EngineImage string `json:"engineImage"`
CurrentImage string `json:"currentImage"`
+ InstanceManagerName string `json:"instanceManagerName"`
}
type Controller struct {
@@ -610,6 +611,7 @@ func toVolumeResource(v *longhorn.Volume, ves []*longhorn.Engine, vrs []*longhor
Address: e.Status.IP,
EngineImage: e.Spec.EngineImage,
CurrentImage: e.Status.CurrentImage,
+ InstanceManagerName: e.Status.InstanceManagerName,
},
Endpoint: e.Status.Endpoint,
LastRestoredBackup: e.Status.LastRestoredBackup,
@@ -677,6 +679,7 @@ func toVolumeResource(v *longhorn.Volume, ves []*longhorn.Engine, vrs []*longhor
NodeID: r.Spec.NodeID,
EngineImage: r.Spec.EngineImage,
CurrentImage: r.Status.CurrentImage,
+ InstanceManagerName: r.Status.InstanceManagerName,
},
DiskID: r.Spec.DiskID,
DataPath: r.Spec.DataPath,
