Skip to content
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

Conf gen updates #262

Merged
merged 6 commits into from
Jul 24, 2022
Merged

Conf gen updates #262

merged 6 commits into from
Jul 24, 2022

Conversation

KalmanMeth
Copy link
Collaborator

No description provided.

@KalmanMeth KalmanMeth requested review from ronensc, jotak and eranra July 21, 2022 08:55
@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2022

Codecov Report

Merging #262 (87ce1ec) into main (8469fe0) will increase coverage by 0.05%.
The diff coverage is 6.19%.

@@            Coverage Diff             @@
##             main     #262      +/-   ##
==========================================
+ Coverage   60.06%   60.11%   +0.05%     
==========================================
  Files          67       69       +2     
  Lines        4014     4102      +88     
==========================================
+ Hits         2411     2466      +55     
- Misses       1451     1474      +23     
- Partials      152      162      +10     
Flag Coverage Δ
unittests 60.11% <6.19%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/api/encode_prom.go 100.00% <ø> (ø)
pkg/confgen/flowlogs2metrics_config.go 0.00% <0.00%> (ø)
pkg/config/config.go 50.00% <ø> (ø)
pkg/confgen/confgen.go 43.47% <20.00%> (ø)
pkg/confgen/config.go 33.33% <25.00%> (-9.53%) ⬇️
pkg/confgen/dedup.go 90.32% <80.00%> (ø)
pkg/test/utils.go 62.50% <0.00%> (-1.85%) ⬇️
pkg/pipeline/ingest/ingest_kafka.go 80.28% <0.00%> (-0.49%) ⬇️
pkg/pipeline/encode/encode_kafka.go 69.01% <0.00%> (-0.35%) ⬇️
pkg/api/encode_kafka.go 100.00% <0.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8469fe0...87ce1ec. Read the comment docs.

@@ -54,16 +54,16 @@ func dedupeNetworkTransformRules(rules api.NetworkTransformRules) api.NetworkTra
// dedupeAggregateDefinitions is inefficient because we can't use a map to look for duplicates.
// The reason is that aggregate.AggregateDefinition is not hashable due to its AggregateBy field which is a slice.
func dedupeAggregateDefinitions(aggregateDefinitions aggregate.Definitions) aggregate.Definitions {
var dedpueSlice []api.AggregateDefinition
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch

@@ -21,161 +21,163 @@ import (
"fmt"
"io/ioutil"

"github.com/netobserv/flowlogs-pipeline/pkg/api"
config2 "github.com/netobserv/flowlogs-pipeline/pkg/config"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to reserve the word config for this import and rename all the other variables named "config".

@KalmanMeth KalmanMeth merged commit 08c7d52 into netobserv:main Jul 24, 2022
@KalmanMeth KalmanMeth linked an issue Jul 28, 2022 that may be closed by this pull request
@KalmanMeth KalmanMeth deleted the conf-gen-updates branch January 29, 2023 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reuse API data structures in confgen
3 participants