diff --git a/openebs.io/diskpool_v1beta2.json b/openebs.io/diskpool_v1beta2.json new file mode 100644 index 00000000..a4684251 --- /dev/null +++ b/openebs.io/diskpool_v1beta2.json @@ -0,0 +1,100 @@ +{ + "description": "Auto-generated derived type for DiskPoolSpec via `CustomResource`", + "properties": { + "spec": { + "description": "The pool spec which contains the parameters we use when creating the pool", + "properties": { + "disks": { + "description": "The disk device the pool is located on", + "items": { + "type": "string" + }, + "type": "array" + }, + "node": { + "description": "The node the pool is placed on", + "type": "string" + }, + "topology": { + "description": "The topology for data placement.", + "nullable": true, + "properties": { + "labelled": { + "additionalProperties": { + "type": "string" + }, + "default": {}, + "description": "Label for topology", + "type": "object" + } + }, + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "disks", + "node" + ], + "type": "object", + "additionalProperties": false + }, + "status": { + "description": "Status of the pool which is driven and changed by the controller loop.", + "nullable": true, + "properties": { + "available": { + "description": "Available number of bytes.", + "format": "uint64", + "minimum": 0, + "type": "integer" + }, + "capacity": { + "description": "Capacity as number of bytes.", + "format": "uint64", + "minimum": 0, + "type": "integer" + }, + "cr_state": { + "default": "Creating", + "description": "PoolState represents operator specific states for DSP CR.", + "enum": [ + "Creating", + "Created", + "Terminating" + ], + "type": "string" + }, + "pool_status": { + "description": "Pool status from respective control plane object.", + "enum": [ + "Unknown", + "Online", + "Degraded", + "Faulted" + ], + "nullable": true, + "type": "string" + }, + "used": { + "description": "Used number of bytes.", + "format": "uint64", + "minimum": 0, + "type": "integer" + } + }, + "required": [ + "available", + "capacity", + "used" + ], + "type": "object", + "additionalProperties": false + } + }, + "required": [ + "spec" + ], + "title": "DiskPool", + "type": "object" +}