-
Notifications
You must be signed in to change notification settings - Fork 157
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: refactor create stages into separate lib #2223
Merged
Noxsios
merged 217 commits into
main
from
2188-refactor-create-stages-into-separate-lib
Mar 13, 2024
Merged
fix: refactor create stages into separate lib #2223
Noxsios
merged 217 commits into
main
from
2188-refactor-create-stages-into-separate-lib
Mar 13, 2024
Conversation
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 introduces the Creator interface to be used as the source of truth for package create operations.
✅ Deploy Preview for zarf-docs canceled.
|
deprecated.MigrateComponent is called in composeComponents so we should be able to remove this duplicate logic
…om readZarfYAML The goal here is separation of concerns
Goal here is separation of concerns
Use utils.ReadYaml in place of readZarfYAML
This reverts commit b5420c0.
This reverts commit 8e9790b.
Ensure ReadYaml is passed the correct path
"Normal" packages and skeleton packages require different loading processes, so using an interface allows us to have two separate implementations for them. This makes the load logic easier to reason about and easier to maintain. Loader is defined in package packager because most of the operations require direct access to the top-level Packager struct fields.
Create Assembler interface Creator interface embeds Loader and Assembler interfaces to allow various create methods to be accessed through a single interface. Create operations are (and should be) closely coupled to Packager, so it makes sense to have create functions in the packager package. Modularity, separation of concerns, library usage, etc can be achieved through the use of these interfaces while remaining in package packager.
Add CdToBaseDir to Creator interface so that it is grouped together with other create-specific operations.
Adds a new modifier WithCreator() that is intended to be passed in as an argument when instantiating a new Packager instance.
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
Signed-off-by: razzle <harry@razzle.cloud>
AustinAbro321
previously approved these changes
Mar 13, 2024
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.
Approved with tiny thing
Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Noxsios
approved these changes
Mar 13, 2024
5 tasks
Noxsios
pushed a commit
that referenced
this pull request
Mar 19, 2024
…2386) ## Description Refactoring that took place in #2223 introduced a bug on `deploy` where the user is not prompted to view SBOMs. This occurs because `p.sbomViewFiles` is not being populated correctly. This PR fixes this issue by populating `p.sbomViewFiles`. ## Related Issue N/A ## Type of change - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Other (security config, docs update, etc) ## Checklist before merging - [ ] Test, docs, adr added or updated as needed - [ ] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow) followed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
refactor create stages into separate lib
Related Issue
Fixes #2188
Type of change
Checklist before merging