-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor functions with pod runner (#2308)
* Simplify `DeleteData` - validate arguments before pod creation. * Minor refactoring of `WriteCredsToPod` Rename to `MaybeWriteProfileCredentials` * In `CopyVolumeData` function, get rid of redundant `namespace` argument. It could be taken from `pod` * Refactor `BackupDataStats` to use `PodRunner.RunEx` * Refactor `CheckRepository` to use `PodRunner.RunEx` * Refactor `DeleteData` to use `PodRunner.RunEx` * Refactor `DeleteDataUsingKopiaServer` to use `PodRunner.RunEx` * Refactor `DescribeBackups` to use `PodRunner.RunEx` * Refactor `PrepareData` to use `PodRunner.RunEx` * Refactor `RestoreData` to use `PodRunner.RunEx` * Refactor `RestoreDataUsingKopiaServer` to use `PodRunner.RunEx` * Apply suggestions from code review - improve formatting / readability Co-authored-by: Pavan Navarathna <[email protected]> * Fix bug with forgotten old way pod readiness check --------- Co-authored-by: chaitalisg <[email protected]> Co-authored-by: Pavan Navarathna <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
bf03057
commit bef2520
Showing
10 changed files
with
302 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.