api: Add MountPropagation status to Node API
@@ -132,6 +132,7 @@ type Node struct {
AllowScheduling bool `json:"allowScheduling"`
Disks map[string]DiskInfo `json:"disks"`
State types.NodeState `json:"state"`
+ MountPropagation bool `json:"mountPropagation"`
}
type DiskInfo struct {
@@ -607,6 +608,7 @@ func toNodeResource(node *longhorn.Node, address string, apiContext *api.ApiCont
Address: address,
AllowScheduling: node.Spec.AllowScheduling,
State: node.Status.State,
+ MountPropagation: node.Status.MountPropagation,
}
disks := map[string]DiskInfo{}
