-
Notifications
You must be signed in to change notification settings - Fork 25
K8SPXC-1431 Fixed example configuration and finalizer description in the on-demand backup doc #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…the on-demand backup doc Added PXC Backup and Restore Custom Resource options reference doc to align this doc set with the rest of the Operators
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes documentation issues in the on-demand backup guide and adds two new Custom Resource (CR) reference documents for backup and restore operations. The changes correct a misspelling in the PR title ("comfiguration"), update the finalizer description from delete-s3-backup to percona.com/delete-backup, and restructure the on-demand backup documentation with improved examples and step-by-step instructions.
Key changes:
- Adds dedicated CR reference documentation for
PerconaXtraDBClusterBackupandPerconaXtraDBClusterRestoreresources - Corrects finalizer naming and updates the on-demand backup guide with clearer instructions
- Removes redundant restore CR documentation from the main operator.md file and fixes storage configuration paths
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| mkdocs-base.yml | Adds navigation entries for the new backup and restore CR reference pages |
| docs/backup-cr.md | New reference documentation for PerconaXtraDBClusterBackup Custom Resource options |
| docs/restore-cr.md | New reference documentation for PerconaXtraDBClusterRestore Custom Resource options |
| docs/backups-ondemand.md | Rewrites the on-demand backup guide with improved structure, examples, and corrected finalizer reference |
| docs/operator.md | Removes duplicate restore CR documentation and fixes storage configuration paths |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
docs/backups-ondemand.md
Outdated
| 2. Now use *a special backup configuration YAML file* with the following | ||
| keys: | ||
| ```bash | ||
| export NAMESPACE = <namespace> |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the spaces around the = in the export command. Bash does not allow spaces around the assignment operator.
| export NAMESPACE = <namespace> | |
| export NAMESPACE=<namespace> |
docs/backup-cr.md
Outdated
|
|
||
| ### `containerOptions.args.xbcloud` | ||
|
|
||
| Custom [command line options :octicons-link-external-16:](https://docs.percona.com/percona-xtrabackup/latest/xbcloud-options.html) for the `xbcloud` Percona XtraBackup tool. |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The URL uses 'latest' in the path, which could point to different versions over time. Consider using 'innovation-release' as in the restore-cr.md file (line 52) for consistency across documentation.
docs/backup-cr.md
Outdated
| * <a name="backup-metadata-name"></a> `name` sets the name of your backup resource; | ||
| * `finalizers` subsection: | ||
|
|
||
| * `percona.com/delete-backup` if present, enables deletion of backup files from a backup storage when the backup object is removed (manually or by schedule). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add here that for filesystem the PVC is deleted but not backup in it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
docs/backup-cr.md
Outdated
|
|
||
| ### `runningDeadlineSeconds` | ||
|
|
||
| The maximum time in seconds for a backup job to run. The Operator compares the timestamp when the backup job started running against the current time. After the defined running time expires, the backup is automatically marked as "failed". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
people might confuse this with activeDeadlineSeconds. I think we need to say:
The maximum time in seconds for a backup job to reach Running state.
docs/backup-cr.md
Outdated
|
|
||
| ### `startingDeadlineSeconds` | ||
|
|
||
| The maximum time in seconds for a backup to start. The Operator compares the timestamp of the backup object against the current time. If the backup is not started within the set time, the Operator automatically marks it as "failed". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the same vein with my comment about runningDeadlineSeconds, people might confuse this with runningDeadlineSeconds. I think we need to say:
The maximum time in seconds for a backup job to reach Starting state.
Added PXC Backup and Restore Custom Resource options reference doc to align this doc set with the rest of the Operators