-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: reworks Feature to be generic data container
Feature Struct Improvements - Eliminates the `.Spec` field, eliminating a single point of coupling with various domain structs used across the project. - Introduces a generic map to store keys relevant to a given feature, which are utilized in templates and other functions. Feature Builder Changes - Renamed few functions to better reflect their intent - entry builder function `feature.CreateFeature` becomes `feature.Define` - Load() becomes Create() - `.WithData` builder function serves as an entry point to define the contents of a given feature. This chain method allows adding key-values to the feature's context. These values are later used in templates and can also be accessed in pre/post conditions and for programmatic resource creation. Additional Changes - Simplifies and decouples the use of `FeatureHandler`. It is no longer necessary to pass it to the Feature builder to group features together. - Introduces a new `FeatureRegistry` interface, allowing convenient addition of feature sets to the handler via the `FeatureProvider` function. - Introduces a convention for defining `FeatureData` for specific parts of the platform (e.g., Serverless or Service Mesh setup). This approach enhances readability and promotes the reuse of commonly used data entries. - Adds a `README.md` file providing a high-level overview of the `Feature DSL`.
- Loading branch information
1 parent
7afb0cf
commit 573f99e
Showing
42 changed files
with
1,383 additions
and
683 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
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
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.