-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add backup
tool
#315
Add backup
tool
#315
Conversation
Signed-off-by: loheagn <[email protected]>
Signed-off-by: loheagn <[email protected]>
Fix #310 |
Codecov Report
@@ Coverage Diff @@
## master #315 +/- ##
=========================================
Coverage ? 78.18%
=========================================
Files ? 23
Lines ? 1595
Branches ? 0
=========================================
Hits ? 1247
Misses ? 268
Partials ? 80
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
|
||
Then you will get the `cofiguration.yaml` and the `state.json` in the workdir. | ||
|
||
Next, you can restore the Configuration and the Terraform state in another Kubernetes cluster using the `restore` subcommand. |
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.
The configuration could not get restored as some fields of metadata need to be cleaned before restoring.
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.
Actually, the configuration will be cleaned before encode it into yaml.
You can checkout the cleanUpConfiguration
function 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.
Great job!
The PR contains two main changes:
Enhance the
restore
tool. Therestore
tool can print the log of theterraform apply
now.Add the
backup
tool.