104 lines
3.1 KiB
JSON
104 lines
3.1 KiB
JSON
{
|
|
"description": "Snapshot is the Schema for the snapshots API",
|
|
"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": "SnapshotSpec defines the desired state of Longhorn Snapshot",
|
|
"properties": {
|
|
"createSnapshot": {
|
|
"description": "require creating a new snapshot",
|
|
"type": "boolean"
|
|
},
|
|
"labels": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"description": "The labels of snapshot",
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"volume": {
|
|
"description": "the volume that this snapshot belongs to.\nThis field is immutable after creation.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"volume"
|
|
],
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"status": {
|
|
"description": "SnapshotStatus defines the observed state of Longhorn Snapshot",
|
|
"properties": {
|
|
"checksum": {
|
|
"type": "string"
|
|
},
|
|
"checksumCalculatedAt": {
|
|
"description": "ChecksumCalculatedAt is the RFC3339 timestamp indicating when the checksum\nfor this snapshot was last calculated or updated.",
|
|
"type": "string"
|
|
},
|
|
"children": {
|
|
"additionalProperties": {
|
|
"type": "boolean"
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"creationTime": {
|
|
"type": "string"
|
|
},
|
|
"error": {
|
|
"type": "string"
|
|
},
|
|
"labels": {
|
|
"additionalProperties": {
|
|
"type": "string"
|
|
},
|
|
"nullable": true,
|
|
"type": "object"
|
|
},
|
|
"markRemoved": {
|
|
"type": "boolean"
|
|
},
|
|
"ownerID": {
|
|
"type": "string"
|
|
},
|
|
"parent": {
|
|
"type": "string"
|
|
},
|
|
"readyToUse": {
|
|
"type": "boolean"
|
|
},
|
|
"requestedTime": {
|
|
"type": "string"
|
|
},
|
|
"restoreSize": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"size": {
|
|
"format": "int64",
|
|
"type": "integer"
|
|
},
|
|
"userCreated": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|