This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
so that it can be used as a library from Auroraboot as part of kairos-io/kairos#1633 The following anti-patterns make it very hard to re-use the enki functions: - viper is used as a global store, randomly accessing everything from anywhere - we pass around too many "configs": the BuildConfig, the embedded kairos-agent config, the BuildUKIAction (which is essentially yet another config), It's nearly impossible to construct the proper input for any function because we don't know what part of the configs available, is actually needed and used. This is a first refactoring that should at least let the caller use the BuildUKIAction without needing to populate a global "viper" object. Signed-off-by: Dimitris Karakasilis <[email protected]>
- Loading branch information
1 parent
9583560
commit 950d879
Showing
3 changed files
with
51 additions
and
47 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