Files
kubeconform/crdSchemas/backup_v1beta2.json
T
2026-05-05 10:50:30 +01:00

161 lines
5.3 KiB
JSON

{
"description": "Backup is where Longhorn stores backup 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": "BackupSpec defines the desired state of the Longhorn backup",
"properties": {
"backupBlockSize": {
"description": "The backup block size. 0 means the legacy default size 2MiB, and -1 indicate the block size is invalid.",
"enum": [
"-1",
"2097152",
"16777216"
],
"format": "int64",
"type": "string"
},
"backupMode": {
"description": "The backup mode of this backup.\nCan be \"full\" or \"incremental\"",
"enum": [
"full",
"incremental"
],
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "The labels of snapshot backup.",
"type": "object"
},
"snapshotName": {
"description": "The snapshot name.",
"type": "string"
},
"syncRequestedAt": {
"description": "The time to request run sync the remote backup.",
"format": "date-time",
"nullable": true,
"type": "string"
}
},
"type": "object",
"additionalProperties": false
},
"status": {
"description": "BackupStatus defines the observed state of the Longhorn backup",
"properties": {
"backupCreatedAt": {
"description": "The snapshot backup upload finished time.",
"type": "string"
},
"backupTargetName": {
"description": "The backup target name.",
"type": "string"
},
"compressionMethod": {
"description": "Compression method",
"type": "string"
},
"error": {
"description": "The error message when taking the snapshot backup.",
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"description": "The labels of snapshot backup.",
"nullable": true,
"type": "object"
},
"lastSyncedAt": {
"description": "The last time that the backup was synced with the remote backup target.",
"format": "date-time",
"nullable": true,
"type": "string"
},
"messages": {
"additionalProperties": {
"type": "string"
},
"description": "The error messages when calling longhorn engine on listing or inspecting backups.",
"nullable": true,
"type": "object"
},
"newlyUploadDataSize": {
"description": "Size in bytes of newly uploaded data",
"type": "string"
},
"ownerID": {
"description": "The node ID on which the controller is responsible to reconcile this backup CR.",
"type": "string"
},
"progress": {
"description": "The snapshot backup progress.",
"type": "integer"
},
"reUploadedDataSize": {
"description": "Size in bytes of reuploaded data",
"type": "string"
},
"replicaAddress": {
"description": "The address of the replica that runs snapshot backup.",
"type": "string"
},
"size": {
"description": "The snapshot size.",
"type": "string"
},
"snapshotCreatedAt": {
"description": "The snapshot creation time.",
"type": "string"
},
"snapshotName": {
"description": "The snapshot name.",
"type": "string"
},
"state": {
"description": "The backup creation state.\nCan be \"\", \"InProgress\", \"Completed\", \"Error\", \"Unknown\".",
"type": "string"
},
"url": {
"description": "The snapshot backup URL.",
"type": "string"
},
"volumeBackingImageName": {
"description": "The volume's backing image name.",
"type": "string"
},
"volumeCreated": {
"description": "The volume creation time.",
"type": "string"
},
"volumeName": {
"description": "The volume name.",
"type": "string"
},
"volumeSize": {
"description": "The volume size.",
"type": "string"
}
},
"type": "object",
"additionalProperties": false
}
},
"type": "object"
}