-
Notifications
You must be signed in to change notification settings - Fork 4
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
PB-7615: Adding isSyncedBackup flag to identify the synced backups #258
Conversation
OSS Scan Results:
Total issues: 43 |
License Evaluation Results:
Total License Issues: 0 |
@@ -64,7 +64,7 @@ vet: | |||
go vet $(PKGS) | |||
|
|||
staticcheck: | |||
GOFLAGS="" go install honnef.co/go/tools/cmd/staticcheck@v0.4.7 | |||
GOFLAGS="" go install honnef.co/go/tools/cmd/staticcheck@latest |
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.
any reason why we are changing this? Because as per I remember when it was 'latest' it was giving error while building docker image due to which we had given a specific version.
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.
+1 please confirm if we have to use latest or 0.4.7
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.
@@ -2062,6 +2064,8 @@ message BackupCreateRequest { | |||
map<string, string> volume_snapshot_class_mapping = 19; | |||
// option to take backup as direct kdmp | |||
bool direct_kdmp = 20; | |||
// this flag will check if the backup is a synced backup | |||
bool isSyncedBackup = 21; |
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 guess we don't need this in create request. As a synced backup is created through the backupsync
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.
+1 having the bool in BackupInfo
is enough, Since backup sync objects are created through BackupSync function and not backupCreate function in px-backup. Having the variable in BackupInfo as a property of backup (BackupInfo message) should suffice here.
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.
@dbinnal-px @kgarg-px
When we sync the backup, we create a new backup object in the mongodb
so you need the flag in the createBackupRequest as well
@shkumari-px Let us add a flag called backup_variant ( generic backup type) and add enums to classify them as manual /schedule /synced backup. |
Closing this pr |
What this PR does / why we need it: it adds a flag isSyncedBackup to check if the backup is a synced backup
Which issue(s) this PR fixes (optional)
Closes # https://purestorage.atlassian.net/browse/PB-7615
Special notes for your reviewer: na