Spec schema
BackupSpec defines the desired state of Backup.
backupPlanRef: string
backupSourceRole: string
dbclusterRef: string
manual:
physicalbackupSpec:
backuptype: string
type: boolean
physicalbackupSpec: string
Field TypeRequired or optional |
Description |
|---|---|
backupPlanRef
| |
stringRequired | Name of the BackupPlan from which this backup was created. |
backupSourceRole
| |
stringOptional |
Backup Source, allowing to specify backup source role as an enum in {"primary", "standby"}. This field is optional and defaults to primary if not specified.
|
dbclusterRef
| |
stringRequired | The DBCluster name this backup belongs to. |
manual
| |
booleanOptional | Indicates whether this backup is a scheduled or manual backup. Defaults to false (scheduled backup) if not specified. |
manual.physicalbackupSpec
| |
objectOptional | Contains spec for physical backups, allowing to specify backup type as an enum in {"full","diff","incr"}. Default to full if not specified. |
manual.physicalbackupSpec.backuptype
| |
stringOptional | The type of backup to be created. It's an enum in {"full","diff","incr"}. Default to full if not specified. |
Status schema
BackupStatus defines the observed state of Backup.
completeTime: string
conditions:
- lastTransitionTime: string
message: string
observedGeneration: integer
reason: string
status: string
type: string
createTime: string
criticalIncidents:
- code: string
createTime: string
message: string
messageTemplateParams: object
resource:
component: string
location:
cluster: string
group: string
kind: string
name: string
namespace: string
version: string
stackTrace:
- component: string
message: string
transientUntil: string
observedGeneration: integer
phase: string
physicalbackupStatus:
backupID: string
priorBackup: string
reconciled: boolean
retainexpireTime: string
Field TypeRequired or optional |
Description |
|---|---|
completeTime
| |
stringOptional | Completion time of the Backup. |
conditions[]
| |
objectOptional | Represents the latest available observations of the entity's current state. |
conditions[].lastTransitionTime
| |
stringRequired | The last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
conditions[].message
| |
stringRequired | a human readable message indicating details about the transition. This may be an empty string. |
conditions[].observedGeneration
| |
integerOptional | Represents the .metadata.generation that the condition was set based upon. For example, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. |
conditions[].reason
| |
stringRequired | Contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. |
conditions[].status
| |
stringRequired | Status of the condition, one of True, False, Unknown. |
conditions[].type
| |
stringRequired | Type of condition in CamelCase or in foo.example.com/CamelCase. Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt). |
createTime
| |
stringOptional | Creation time of the Backup. |
criticalIncidents[]
| |
objectRequired | CriticalIncidents is a flat list of all active Critical Incidents. |
criticalIncidents[].code
| |
stringRequired | The error code of this particular error. Error codes are DBSE+numeric strings, like "DBSE1012". |
criticalIncidents[].createTime
| |
stringRequired | The timestamp when this Incident was created at the origin. |
criticalIncidents[].message
| |
stringOptional | Message describes the incident/error that occurred. |
criticalIncidents[].messageTemplateParams
| |
objectOptional | Contains key-value pairs necessary for generating a user-friendly data-driven version of Message in the user interface. |
criticalIncidents[].resource
| |
objectRequired | Contains information about the Database Service component that reported the incident as well as about the K8s resource. |
criticalIncidents[].resource.component
| |
stringRequired | An internal identifier of the Database Service subsystem that reported the incident. |
criticalIncidents[].resource.location
| |
objectOptional | Location. |
criticalIncidents[].resource.location.cluster
| |
stringOptional | The name of the cluster of the affected Kubernetes resource. |
criticalIncidents[].resource.location.group
| |
stringOptional | The Group name of the Kubernetes resource. |
criticalIncidents[].resource.location.kind
| |
stringOptional | The Kind of the Kubernetes resource. |
criticalIncidents[].resource.location.name
| |
stringOptional | The name of the affected Kubernetes resource. |
criticalIncidents[].resource.location.namespace
| |
stringOptional | The namespace of the affected Kubernetes resource. |
criticalIncidents[].resource.location.version
| |
stringOptional | The Version of the Kubernetes resource. |
criticalIncidents[].stackTrace
| |
objectOptional | An unstructured list of messages from the stack trace. |
criticalIncidents[].stackTrace.component
| |
stringOptional | The name of a Database Service component that logged the message. |
criticalIncidents[].stackTrace.message
| |
stringOptional | Logged message. |
criticalIncidents[].transientUntil
| |
stringOptional | If present indicates that the issue should be considered transient until the specified time. |
observedGeneration
| |
integerOptional | Internal: The generation observed by the controller. |
phase
| |
stringOptional | BackupPhase is the phase of a backup. |
phase.physicalBackupStatus
| |
objectOptional | PhysicalBackupStatus contains status info that are specific for physical backups. |
phase.physicalBackupStatus.backupID
| |
stringOptional | The unique id of the physical backup tracked by pgbackrest. |
phase.physicalBackupStatus.priorBackup
| |
stringOptional | PriorBackup is the prior backup this backup depends on. |
reconciled
| |
booleanOptional | Internal: Whether the resource was reconciled by the controller. |
retainExpireTime
| |
stringOptional | RetainExpireTime defines the time when the Backup is deleted. It's an output only field calculated from create_time + retain_days, and is updated accordingly when the retain_days field of a Backup is updated. |