Skip to content

feat: support k8s-backup-target interface for generic backup operations - #222

Open
jneo8 wants to merge 2 commits into
mainfrom
feat/support-k8s-generic-backup-lib
Open

jneo8 wants to merge 2 commits into
mainfrom
feat/support-k8s-generic-backup-lib

Conversation

@jneo8

@jneo8 jneo8 commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

Add K8sBackupTargetRequirer integration to the velero-operator charm, enabling backup/restore operations via the k8s-backup-target relation interface alongside the existing velero-backup-config interface.

  • Integrate K8sBackupTargetRequirer in charm.py with relation event handlers and schedule reconciliation
  • Add create-backup and list-backups support for k8s-backup-target relations
  • Add integration tests for the full k8s-backup-target lifecycle (relate, refresh, backup, list, restore, unrelate)
  • Add unit tests for k8s-backup-target relation handling and backup spec resolution
  • Update test charm to provide k8s-backup-target endpoint

Add K8sBackupTargetRequirer integration to the velero-operator charm,
enabling backup/restore operations via the k8s-backup-target relation
interface alongside the existing velero-backup-config interface.

- Integrate K8sBackupTargetRequirer in charm.py with relation event
  handlers and schedule reconciliation
- Add create-backup and list-backups support for k8s-backup-target
  relations
- Add integration tests for the full k8s-backup-target lifecycle
  (relate, refresh, backup, list, restore, unrelate)
- Add unit tests for k8s-backup-target relation handling and
  backup spec resolution
- Update test charm to provide k8s-backup-target endpoint

Signed-off-by: jneo8 <james.lin@canonical.com>
@jneo8
jneo8 requested review from Deezzir and dariofaccin April 1, 2026 05:33

@dariofaccin dariofaccin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a question and a suggestion.
For the rest, PR looks good.

Comment thread tests/integration/test_backup_relation.py Outdated
Comment thread tests/integration/helpers.py Outdated
- Rename deploy_velero_and_test_charm to deploy_velero_test_charm_and_s3_integrator
  to make it clear at first sight that s3-integrator is also deployed.
- Extend remove_all_applications to verify that core Velero resources
  (Deployment, DaemonSet, ServiceAccount, Service) are cleaned up from
  the model namespace after the charms are removed.

Signed-off-by: jneo8 <james.lin@canonical.com>
@jneo8
jneo8 requested a review from dariofaccin April 8, 2026 01:51
@jneo8

jneo8 commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

Hi @Deezzir can I get your approval for this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants