-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor: Config and CLI #63
Conversation
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.
Please look at the README as well in the end. Docu needs to be changed.
As soon as the auto generation is implemented we might rm the manually written docu.
Signed-off-by: Bruno Bressi <[email protected]>
Everything LGTM @niklastreml. I've removed the target manager as well in a separate PR so we can finish this one once and for all. :) |
Sounds good 👍 @puffitos |
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.
LGTM 👍 but wait with merging until #68 is merged into this branch
- chore: remove unused file - chore: latency receiver typo - chore: grammar in root.go - chore: uneeded or removed in charts - chore: identation in chart fixed Signed-off-by: Bruno Bressi <[email protected]>
Signed-off-by: Bruno Bressi <[email protected]>
chore: removed dedicated targetManager config
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.
Thx! LGTM
Motivation
The current configuration structure is disorderly, with most options using non-nested, lengthy names. This pull request addresses this issue by reorganizing the configuration layout to utilize nesting, as illustrated below:
Before:
After:
This restructuring enhances the clarity and maintainability of the configuration setup.
Adding a parameter to both the configuration and the Command Line Interface (CLI) currently requires changes in three different locations in the codebase. This pull request aims to streamline and simplify this process.
Closes #47
Changes
Removed flagmapping struct and replaced it with a simple abstraction over Viper and Cobra. The acbstraction provides a unified approach for registering and binding configuration keys to CLI parameters. This abstraction follows a builder pattern, enhancing code structure and maintainability. Also updated helm chart, to reflect the changes to the config.
For additional details, refer to the commit history.
Tests done