Files
kubeconform/crdSchemas/master-standalone/backingimage-stable-v1beta2.json
T
2026-05-05 10:50:30 +01:00

172 lines
4.9 KiB
JSON

{
"description": "BackingImage is where Longhorn stores backing image 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": "BackingImageSpec defines the desired state of the Longhorn backing image",
"properties": {
"checksum": {
"type": "string"
},
"dataEngine": {
"default": "v1",
"enum": [
"v1",
"v2"
],
"type": "string"
},
"diskFileSpecMap": {
"additionalProperties": {
"properties": {
"dataEngine": {
"enum": [
"v1",
"v2"
],
"type": "string"
},
"evictionRequested": {
"type": "boolean"
}
},
"type": "object",
"additionalProperties": false
},
"type": "object"
},
"diskSelector": {
"items": {
"type": "string"
},
"type": "array"
},
"disks": {
"additionalProperties": {
"type": "string"
},
"description": "Deprecated. We are now using DiskFileSpecMap to assign different spec to the file on different disks.",
"type": "object"
},
"minNumberOfCopies": {
"type": "integer"
},
"nodeSelector": {
"items": {
"type": "string"
},
"type": "array"
},
"secret": {
"type": "string"
},
"secretNamespace": {
"type": "string"
},
"sourceParameters": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"sourceType": {
"enum": [
"download",
"upload",
"export-from-volume",
"restore",
"clone"
],
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "BackingImageStatus defines the observed state of the Longhorn backing image status",
"properties": {
"checksum": {
"type": "string"
},
"diskFileStatusMap": {
"additionalProperties": {
"properties": {
"dataEngine": {
"enum": [
"v1",
"v2"
],
"type": "string"
},
"lastStateTransitionTime": {
"type": "string"
},
"message": {
"type": "string"
},
"progress": {
"type": "integer"
},
"state": {
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"nullable": true,
"type": "object"
},
"diskLastRefAtMap": {
"additionalProperties": {
"type": "string"
},
"nullable": true,
"type": "object"
},
"ownerID": {
"type": "string"
},
"realSize": {
"description": "Real size of image in bytes, which may be smaller than the size when the file is a sparse file. Will be zero until known (e.g. while a backing image is uploading)",
"format": "int64",
"type": "integer"
},
"size": {
"format": "int64",
"type": "integer"
},
"uuid": {
"type": "string"
},
"v2FirstCopyDisk": {
"type": "string"
},
"v2FirstCopyStatus": {
"description": "It is pending -> in-progress -> ready/failed",
"type": "string"
},
"virtualSize": {
"description": "Virtual size of image in bytes, which may be larger than physical size. Will be zero until known (e.g. while a backing image is uploading)",
"format": "int64",
"type": "integer"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}