517 lines
16 KiB
JSON
517 lines
16 KiB
JSON
{
|
|
"description": "InstanceManager is where Longhorn stores instance manager object.",
|
|
"properties": {
|
|
"apiVersion": {
|
|
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
|
"type": "string"
|
|
},
|
|
"kind": {
|
|
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
|
"type": "string"
|
|
},
|
|
"metadata": {
|
|
"type": "object"
|
|
},
|
|
"spec": {
|
|
"description": "InstanceManagerSpec defines the desired state of the Longhorn instance manager",
|
|
"properties": {
|
|
"dataEngine": {
|
|
"type": "string"
|
|
},
|
|
"dataEngineSpec": {
|
|
"properties": {
|
|
"v2": {
|
|
"properties": {
|
|
"cpuMask": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"image": {
|
|
"type": "string"
|
|
},
|
|
"nodeID": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"enum": [
|
|
"aio",
|
|
"engine",
|
|
"replica"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"status": {
|
|
"description": "InstanceManagerStatus defines the observed state of the Longhorn instance manager",
|
|
"properties": {
|
|
"apiMinVersion": {
|
|
"type": "integer"
|
|
},
|
|
"apiVersion": {
|
|
"type": "integer"
|
|
},
|
|
"backingImages": {
|
|
"additionalProperties": {
|
|
"properties": {
|
|
"currentChecksum": {
|
|
"type": "string"
|
|
},
|
|
"diskUUID": {
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"progress": {
|
|
"type": "integer"
|
|
},
|
|
"size": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"conditions": {
|
|
"items": {
|
|
"properties": {
|
|
"lastProbeTime": {
|
|
"description": "Last time we probed the condition.",
|
|
"type": "string"
|
|
},
|
|
"lastTransitionTime": {
|
|
"description": "Last time the condition transitioned from one status to another.",
|
|
"type": "string"
|
|
},
|
|
"message": {
|
|
"description": "Human-readable message indicating details about last transition.",
|
|
"type": "string"
|
|
},
|
|
"reason": {
|
|
"description": "Unique, one-word, CamelCase reason for the condition's last transition.",
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"description": "Status is the status of the condition.\nCan be True, False, Unknown.",
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"description": "Type is the type of the condition.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"nullable": true,
|
|
"type": "array"
|
|
},
|
|
"currentState": {
|
|
"type": "string"
|
|
},
|
|
"dataEngineStatus": {
|
|
"properties": {
|
|
"v2": {
|
|
"properties": {
|
|
"cpuMask": {
|
|
"type": "string"
|
|
},
|
|
"interruptModeEnabled": {
|
|
"description": "InterruptModeEnabled indicates whether the V2 data engine is running in\ninterrupt mode (true) or polling mode (false). Set by Longhorn manager;\nread-only to users.",
|
|
"enum": [
|
|
"",
|
|
"true",
|
|
"false"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"instanceEngineFrontends": {
|
|
"additionalProperties": {
|
|
"properties": {
|
|
"spec": {
|
|
"properties": {
|
|
"dataEngine": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"status": {
|
|
"properties": {
|
|
"activePath": {
|
|
"type": "string"
|
|
},
|
|
"conditions": {
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"endpoint": {
|
|
"type": "string"
|
|
},
|
|
"errorMsg": {
|
|
"type": "string"
|
|
},
|
|
"frontend": {
|
|
"type": "string"
|
|
},
|
|
"listen": {
|
|
"type": "string"
|
|
},
|
|
"paths": {
|
|
"items": {
|
|
"properties": {
|
|
"anaState": {
|
|
"type": "string"
|
|
},
|
|
"engineName": {
|
|
"type": "string"
|
|
},
|
|
"nguid": {
|
|
"type": "string"
|
|
},
|
|
"nqn": {
|
|
"type": "string"
|
|
},
|
|
"targetIP": {
|
|
"type": "string"
|
|
},
|
|
"targetPort": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"type": "array"
|
|
},
|
|
"portEnd": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"portStart": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"preferredPath": {
|
|
"type": "string"
|
|
},
|
|
"resourceVersion": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"targetPortEnd": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"targetPortStart": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"ublkID": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"instanceEngines": {
|
|
"additionalProperties": {
|
|
"properties": {
|
|
"spec": {
|
|
"properties": {
|
|
"dataEngine": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"status": {
|
|
"properties": {
|
|
"activePath": {
|
|
"type": "string"
|
|
},
|
|
"conditions": {
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"endpoint": {
|
|
"type": "string"
|
|
},
|
|
"errorMsg": {
|
|
"type": "string"
|
|
},
|
|
"frontend": {
|
|
"type": "string"
|
|
},
|
|
"listen": {
|
|
"type": "string"
|
|
},
|
|
"paths": {
|
|
"items": {
|
|
"properties": {
|
|
"anaState": {
|
|
"type": "string"
|
|
},
|
|
"engineName": {
|
|
"type": "string"
|
|
},
|
|
"nguid": {
|
|
"type": "string"
|
|
},
|
|
"nqn": {
|
|
"type": "string"
|
|
},
|
|
"targetIP": {
|
|
"type": "string"
|
|
},
|
|
"targetPort": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"type": "array"
|
|
},
|
|
"portEnd": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"portStart": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"preferredPath": {
|
|
"type": "string"
|
|
},
|
|
"resourceVersion": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"targetPortEnd": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"targetPortStart": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"ublkID": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"instanceReplicas": {
|
|
"additionalProperties": {
|
|
"properties": {
|
|
"spec": {
|
|
"properties": {
|
|
"dataEngine": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"status": {
|
|
"properties": {
|
|
"activePath": {
|
|
"type": "string"
|
|
},
|
|
"conditions": {
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"endpoint": {
|
|
"type": "string"
|
|
},
|
|
"errorMsg": {
|
|
"type": "string"
|
|
},
|
|
"frontend": {
|
|
"type": "string"
|
|
},
|
|
"listen": {
|
|
"type": "string"
|
|
},
|
|
"paths": {
|
|
"items": {
|
|
"properties": {
|
|
"anaState": {
|
|
"type": "string"
|
|
},
|
|
"engineName": {
|
|
"type": "string"
|
|
},
|
|
"nguid": {
|
|
"type": "string"
|
|
},
|
|
"nqn": {
|
|
"type": "string"
|
|
},
|
|
"targetIP": {
|
|
"type": "string"
|
|
},
|
|
"targetPort": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"type": "array"
|
|
},
|
|
"portEnd": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"portStart": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"preferredPath": {
|
|
"type": "string"
|
|
},
|
|
"resourceVersion": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"state": {
|
|
"type": "string"
|
|
},
|
|
"targetPortEnd": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"targetPortStart": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"type": {
|
|
"type": "string"
|
|
},
|
|
"ublkID": {
|
|
"format": "int32",
|
|
"type": "integer"
|
|
},
|
|
"uuid": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"ip": {
|
|
"type": "string"
|
|
},
|
|
"ownerID": {
|
|
"type": "string"
|
|
},
|
|
"proxyApiMinVersion": {
|
|
"type": "integer"
|
|
},
|
|
"proxyApiVersion": {
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|