99 lines
3.8 KiB
JSON
99 lines
3.8 KiB
JSON
{
|
|
"description": "BackupTarget is where Longhorn stores backup target 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": "BackupTargetSpec defines the desired state of the Longhorn backup target",
|
|
"properties": {
|
|
"backupTargetURL": {
|
|
"description": "The backup target URL.",
|
|
"type": "string"
|
|
},
|
|
"credentialSecret": {
|
|
"description": "The backup target credential secret.",
|
|
"type": "string"
|
|
},
|
|
"pollInterval": {
|
|
"description": "The interval that the cluster needs to run sync with the backup target.",
|
|
"type": "string"
|
|
},
|
|
"syncRequestedAt": {
|
|
"description": "The time to request run sync the remote backup target.",
|
|
"format": "date-time",
|
|
"nullable": true,
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
},
|
|
"status": {
|
|
"description": "BackupTargetStatus defines the observed state of the Longhorn backup target",
|
|
"properties": {
|
|
"available": {
|
|
"description": "Available indicates if the remote backup target is available or not.",
|
|
"type": "boolean"
|
|
},
|
|
"conditions": {
|
|
"description": "Records the reason on why the backup target is unavailable.",
|
|
"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"
|
|
},
|
|
"lastSyncedAt": {
|
|
"description": "The last time that the controller synced with the remote backup target.",
|
|
"format": "date-time",
|
|
"nullable": true,
|
|
"type": "string"
|
|
},
|
|
"ownerID": {
|
|
"description": "The node ID on which the controller is responsible to reconcile this backup target CR.",
|
|
"type": "string"
|
|
}
|
|
},
|
|
"type": "object",
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"type": "object"
|
|
}
|