Skip to content
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

Enable backup of database and secrets associated with Pulp custom resource #109

Merged
merged 1 commit into from
Apr 6, 2021

Conversation

chambridge
Copy link
Contributor

  • Create new CRD and update CSV bundler
  • Create new role to capture secrets and db data to PVC
  • Update backup CR with backup PVC and directory information

fixes #8473
https://pulp.plan.io/issues/8473

@chambridge
Copy link
Contributor Author

After deploying the pulp operator and instance with CI_TEST=true ./up.sh which creates the CRDs, secrets and Pulp CR; you can create the new backup with the ci CR added:

kubectl apply -f deploy/crds/pulpproject_v1beta1_pulpbackup_cr.ci.yaml

The end result will be the following log:
logs-from-pulp-operator-in-pulp-operator-846b975dbc-cm5bs.txt

Here you can see the resulting operator run, PVC, and CR update:

pulp_backup_db.mp4

Another issue exists that will tackle the storage end (gathering the secret for objectstorage or using RWM and copying files for the file storage.

@pulpbot
Copy link
Member

pulpbot commented Apr 6, 2021

Attached issue: https://pulp.plan.io/issues/8473

@chambridge chambridge marked this pull request as ready for review April 6, 2021 14:28
…ource

* Create new CRD and update CSV bundler
* Create new role to capture secrets and db data to PVC
* Update backup CR with backup PVC and directory information

fixes #8473
https://pulp.plan.io/issues/8473
Copy link
Member

@fao89 fao89 left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +7 to +10
- version: v1beta1
group: pulp.pulpproject.org
kind: PulpBackup
role: backup
Copy link
Member

Choose a reason for hiding this comment

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

cool!

@chambridge
Copy link
Contributor Author

Here is a view of what the PulpBackup custom resource creation via Form looks like on OCP:
image

@chambridge chambridge merged commit b8fc240 into pulp:main Apr 6, 2021
@chambridge chambridge deleted the 8473-backup-db-secrets branch April 6, 2021 19:21
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.

None yet

3 participants