-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat(dr): new improved dr restore capability #1583
feat(dr): new improved dr restore capability #1583
Conversation
This PR has been released (on staging) and is available for download with a embedded-cluster-smoke-test-staging-app license ID. Online Installer:
Airgap Installer (may take a few minutes before the airgap bundle is built):
Happy debugging! |
@@ -321,8 +322,8 @@ func RestoreCmd(ctx context.Context, name string) *cobra.Command { | |||
backupToRestore = pickBackupToRestore(backups) | |||
|
|||
logrus.Info("") | |||
completionTimestamp := backupToRestore.Status.CompletionTimestamp.Time.Format("2006-01-02 15:04:05 UTC") | |||
shouldRestore := prompts.New().Confirm(fmt.Sprintf("Restore from backup %q (%s)?", backupToRestore.Name, completionTimestamp), true) | |||
creationTimestamp := backupToRestore.GetCreationTimestamp().Time.Format("2006-01-02 15:04:05 UTC") |
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.
Shouldnt this be creation timestamp not completion timestamp?
a752b8c
to
f539aa4
Compare
850cb27
to
017d7e5
Compare
[sc-116990] |
pkg/snapshots/backup.go
Outdated
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.
should the package name be dr
or disasterrecovery
instead? the term snapshots is for legacy backup/restore functionality.
What this PR does / why we need it:
Adds support for restoring from dual-backups.
Adds a new app release with a Restore resource for E2E tests.
Which issue(s) this PR fixes:
Does this PR require a test?
Does this PR require a release note?
Does this PR require documentation?
TODO