-
Notifications
You must be signed in to change notification settings - Fork 174
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
fix init pkg deploy via ui #900
fix init pkg deploy via ui #900
Conversation
Validation that fix is working on my machine.Screen.Recording.2022-10-13.at.11.34.40.AM.mov |
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.
Overall lgtm, one minor thing we should keep an eye on is the use of default initializers in the frontend, they aren't synced in anyway to the usage in the cmd
package so could diverge if we're not careful. I don't have a great solution though rn to make it cleaner without a larger refactor on how we split business / presentation logic for the TUI and GUI.
## Description There is currently a disconnect between the UI and the CLI experience when `zarf init`ing. This is because the flow of `zarf init` does not strictly follow the same flow that `zarf package deploy` does. `ZarfDeployOptions != ZarfInitOptions`. This PR patches the overall API request flow, but does not add the missing options from `ZarfInitOptions` to the UI. Further discussion is needed in that area. <!-- Please include a summary of the change. Any relevant motivation or context is also helpful, as well as any dependencies that are required for this change --> ## Related Issue <!--- This project prefers to accept pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> Fixes #882 ## Type of change <!-- Please delete options that are not relevant --> - [x] Bug fix (non-breaking change which fixes an issue)
Description
There is currently a disconnect between the UI and the CLI experience when
zarf init
ing. This is because the flow ofzarf init
does not strictly follow the same flow thatzarf package deploy
does.ZarfDeployOptions != ZarfInitOptions
.This PR patches the overall API request flow, but does not add the missing options from
ZarfInitOptions
to the UI. Further discussion is needed in that area.Related Issue
Fixes #882
Type of change