Spec schema
BackupPlan Spec defines the selected state of BackupPlan.
BackupPlan:
metadata:
name: string
spec:
backupLocation:
gcsOptions:
bucket: string
key: string
secretRef:
name: string
s3Options:
bucket: string
caBundle: []string
endpoint: string
key: string
region: string
secretRef:
name: string
type: string
backupRetainDays: integer
backupSchedules:
differential: string
full: string
incremental: string
dbclusterRef: string
paused: boolean
Field TypeRequired or optional |
Description |
|---|---|
name
| |
stringRequired | Name of the BackupPlan resource. |
backupLocation
| |
objectRequired | Specifies the remote object storage repository location to store backups. |
backupLocation.gcsOptions
| |
objectOptional | Configuration options for the Cloud Storage repository. |
backupLocation.gcsOptions.bucket
| |
stringRequired |
Cloud Storage bucket name—for example, dbs-dump-bucket. The user must ensure write access to the storage bucket.
|
backupLocation.gcsOptions.key
| |
stringRequired |
Object key prefix for backup dump files—for example, ods-dump/scottschema.dmp.
|
backupLocation.gcsOptions.secretRef
| |
objectOptional |
A reference to the Secret resource that stores the Cloud Storage access information.
|
backupLocation.gcsOptions.secretRef.name
| |
stringRequired |
Name of the Secret resource.
|
backupLocation.s3Options
| |
objectOptional | Configuration options for Amazon S3 or S3-compatible object storage repository. |
backupLocation.s3Options.bucket
| |
stringRequired |
S3 bucket name—for example, dbs-dump-bucket. The user must ensure write access to the storage bucket.
|
backupLocation.s3Options.caBundle
| |
list (string)Optional | Pool of PEM-encoded CA certificates used to validate the S3 storage server certificate. |
backupLocation.s3Options.endpoint
| |
stringOptional |
S3 endpoint URL—for example, https://s3.amazonaws.com.
|
backupLocation.s3Options.key
| |
stringRequired |
Object key prefix for backup dump files—for example, ods-dump/scottschema.dmp.
|
backupLocation.s3Options.region
| |
stringRequired |
AWS S3 region where the bucket resides—for example, us-west-2.
|
backupLocation.s3Options.secretRef
| |
objectOptional |
Reference to the Secret containing S3 storage access credentials.
|
backupLocation.s3Options.secretRef.name
| |
stringRequired |
Name of the Secret resource.
|
backupLocation.type
| |
stringRequired |
Valid values: S3 for Amazon S3, GCS for Cloud Storage), which tells the agent which storage system or API to use.
|
backupRetainDays
| |
integerOptional |
Default: Backup. If specified, a Backup created under this BackupPlan is automatically deleted after its age reaches createTime + backupRetainDays.
|
backupSchedules
| |
objectOptional |
Defines the schedules for different types of automated backups. Full, differential, and incremental backup types are supported. If not specified, one full backup is taken every day at midnight (0 0 * * *).
|
backupSchedules.differential
| |
stringOptional | Standard cron expression defining the schedule for automated differential backups. |
backupSchedules.full
| |
stringOptional |
Standard cron expression defining the schedule for automated full backups (for example, 0 0 * * *).
|
backupSchedules.incremental
| |
stringOptional | Standard cron expression defining the schedule for automated incremental backups. |
dbclusterRef
| |
stringRequired |
The name of the DBCluster custom resource that this backup plan configures. This field is required and immutable.
|
paused
| |
booleanOptional |
Default: true, the service pauses scheduling new automated backups.
|
Status schema
BackupPlanStatus defines the observed state of BackupPlan.
conditions:
- lastTransitionTime: string
message: string
observedGeneration: integer
reason: string
status: string
type: 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
lastBackupTime: string
nextBackupTime: string
observedGeneration: integer
phase: string
reconciled: boolean
recoveryWindow:
begin: string
end: string
Field TypeRequired or optional |
Description |
|---|---|
conditions
| |
list (object)Optional | Conditions represent 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 is when the underlying condition changed. If that is not known, then use the time when the API field changed. |
conditions[].message
| |
stringRequired | A human readable message indicating details about the transition. This can be an empty string. |
conditions[].observedGeneration
| |
integerOptional |
Represents the .metadata.generation that the condition was set based upon. For example, if .metadata.generation is 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 | maximum length: 1024, minimum length: 1 Contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types might define expected values and meanings for this field. The value must be a CamelCase string. This field cannot be empty. |
conditions[].status
| |
stringRequired |
Status of the condition, one of True, False, Unknown.
|
conditions[].type
| |
stringRequired |
Maximum length: 316 Type of condition in CamelCase or in foo.example.com/CamelCase.
|
criticalIncidents
| |
list (object)Required | A flat list of all active critical incidents. Contains all information about an ongoing critical incident. |
criticalIncidents[].code
| |
stringRequired |
The error code of this particular error. Error codes are formatted as DBSE followed by a number, like DBSE1012.
|
criticalIncidents[].createTime
| |
stringRequired | The timestamp when this Incident is created at the origin. |
criticalIncidents[].message
| |
stringOptional | The incident or 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 information about the cluster manager resource. |
criticalIncidents[].resource.component
| |
stringRequired | An internal identifier of the Database Service subsystem that reported the incident. |
criticalIncidents[].resource.location
| |
objectOptional | Location where the resource is located. |
criticalIncidents[].resource.location.cluster
| |
stringOptional | The name of the cluster of the affected cluster manager resource. |
criticalIncidents[].resource.location.group
| |
stringOptional | The group name of the cluster manager resource. |
criticalIncidents[].resource.location.kind
| |
stringOptional | The kind of the cluster manager resource. |
criticalIncidents[].resource.location.name
| |
stringOptional | The name of the affected cluster manager resource. |
criticalIncidents[].resource.location.namespace
| |
stringOptional | The namespace of the affected cluster manager resource. |
criticalIncidents[].resource.location.version
| |
stringOptional | The version of the cluster manager resource. |
criticalIncidents[].stackTrace
| |
list (object)Optional | 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, TransientUntil indicates that the issue must be considered transient until the specified time.
|
lastBackupTime
| |
stringOptional | The timestamp for the most recently executed backup. |
nextBackupTime
| |
stringOptional | The timestamp for the next scheduled backup. |
observedGeneration
| |
integerOptional | The generation observed by the controller. |
phase
| |
stringOptional | The phase of a BackupPlan. |
reconciled
| |
booleanOptional | Whether the resource was reconciled by the controller. |
recoveryWindow
| |
objectOptional | The available recovery window. |
recoveryWindow.begin
| |
stringOptional | Begin time. |
recoveryWindow.end
| |
stringOptional | End time. |