-
Notifications
You must be signed in to change notification settings - Fork 601
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
Snapshot dedicated pvc #3997
Snapshot dedicated pvc #3997
Conversation
3f250c2
to
4799a2f
Compare
// VolumeSnapshots, return an error, otherwise return nil. | ||
volumeSnapshotsExist, err := r.GroupVersionKindExists("snapshot.storage.k8s.io/v1", "VolumeSnapshot") | ||
volumeSnapshotKindExists, err := r.GroupVersionKindExists("snapshot.storage.k8s.io/v1", "VolumeSnapshot") |
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.
📝 I keep forgetting about #3973.
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.
Yeah... kind of want to get this PR merged, but maybe after it is merged I can add to the api discovery PR to make snapshots use it and then we can merged that one.
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.
Please squash into fewer commits before merging.
…finishes successfully, do a delta restore into dedicated volume and then snapshot the volume. Add/adjust tests for snapshots. Co-authored by: Anthony Landreth <tony.landreth@crunchydata.com>
5d39aed
to
151cba9
Compare
Checklist:
Type of Changes:
What is the current behavior (link to any open issues here)?
Currently, when the operator creates a VolumeSnapshot, it does it on the cluster's primary pgdata volume with the database running.
What is the new behavior (if this is a feature change)?
When snapshots are enabled a dedicated snapshot volume (DSV) will be created and every time a backup completes, a delta restore will be done in the DSV. When the restore finishes successfully, a snapshot will be created of the DSV.
Other Information: