-
Notifications
You must be signed in to change notification settings - Fork 332
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
unitctl export subcommand #1321
Conversation
If Or perhaps that's already planned, and this is a deliberately different thing that is designed for the entire configuration? It's not clear to me what the overall goal of #1317 is. It would make it much easier to understand the intent of the PR if the commit message/comment had a sample shell snippet with an example |
Sure, I am happy to rename the subcommand.
off the top of my head:
I am happy to record a small screencap of the above. |
Subcommand is now renamed to export |
@avahahn this won't work:
The So this might have an impact on the overall design (and value) of this feature. |
Sounds like you mean it can't be exported. That is unfortunate but I still believe this is worth implementing at least for configuration and js_modules. I will add a note to the Readme that certificates must be replicated separately. |
What do you think should happen if an exported configuration contains listeners with Does this align with your vision for this feature?
|
Currently import already handles pem files (and js_modules). This MR only saves the configuration JSON. |
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 functional code is good enough that I wouldn't block merging, but if possible I'd really appreciate resolutions to the open conversations above.
798f392
to
e44cece
Compare
* new subcommand for "export" in CLI * new cmd submodule for exporting config tarballs * logic to also output to stdout * README additions * limitations documented Signed-off-by: Ava Hahn <a.hahn@f5.com>
Currently implemented is a
unitctl
subcommand that saves Unitd configuration to a tarball. This is the first step in addressing #1317.Yet to be implemented is support for saving NJS modules or certificates. The code enclosed will be trivial to extend to support that later. Until then, #1317 should remain open.