Closed jotak closed 6 months ago
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from jotak. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Attention: Patch coverage is 85.71429%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 67.30%. Comparing base (
24bf8ce
) to head (873e42c
).
Files | Patch % | Lines |
---|---|---|
pkg/confgen/extract.go | 50.00% | 1 Missing :warning: |
pkg/config/config.go | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Attempt fails, cf https://github.com/netobserv/flowlogs-pipeline/pull/623 We'd need to get rid of viper if we want to use yaml rather than json. I don't think viper brings anything super useful here, anyway.
@eranra I think viper was originally used to allow passing in command line configuration parameters. We need to decide whether we still need this.
@KalmanMeth yes it allows using various sources for parameters, but comes with this limitation of not being case sensitive which is annoying for yaml. Do you have any idea if the other parameter sources (such as ENV or command line) are actually used out in the wild?
@KalmanMeth yes it allows using various sources for parameters, but comes with this limitation of not being case sensitive which is annoying for yaml. Do you have any idea if the other parameter sources (such as ENV or command line) are actually used out in the wild?
@jotak @KalmanMeth In past projects we used cobra https://github.com/spf13/cobra - I do not know if this is better in compared with viper. In any event, I think that for the completeness and simplicity of a "stand-alone" tool such as FLP it does make sense to keep the option to provide command-line parameters
Description
Dependencies
n/a
Checklist
If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.