api: Fix volume schema
@@ -460,9 +460,11 @@ func volumeSchema(volume *client.Schema) {
},
"activate": {
Input: "activateInput",
+ Output: "volume",
},
"expand": {
Input: "expandInput",
+ Output: "volume",
},
"cancelExpansion": {
Output: "volume",
@@ -500,9 +502,11 @@ func volumeSchema(volume *client.Schema) {
"pvCreate": {
Input: "PVCreateInput",
+ Output: "volume",
},
"pvcCreate": {
Input: "PVCCreateInput",
+ Output: "volume",
},
"jobList": {},
@@ -597,6 +601,10 @@ func volumeSchema(volume *client.Schema) {
purgeStatus := volume.ResourceFields["purgeStatus"]
purgeStatus.Type = "array[purgeStatus]"
volume.ResourceFields["purgeStatus"] = purgeStatus
+
+ rebuildStatus := volume.ResourceFields["rebuildStatus"]
+ rebuildStatus.Type = "array[rebuildStatus]"
+ volume.ResourceFields["rebuildStatus"] = rebuildStatus
}
func toSettingResource(setting *longhorn.Setting) *Setting {
