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

Avoid duplicate code, add NewRetrievedFromYAML, replace NewRetrievedFromConf with NewRetrieved #5453

Closed

Conversation

bogdandrutu
Copy link
Member

@bogdandrutu bogdandrutu commented Jun 1, 2022

  • It is ok to change NewRetrievedFromMap to NewRetrieved since it was just moved, not yet released.

This is a step towards supporting providing any value type.

Signed-off-by: Bogdan Drutu [email protected]

@bogdandrutu bogdandrutu requested review from a team and mx-psi June 1, 2022 22:32
@codecov
Copy link

codecov bot commented Jun 1, 2022

Codecov Report

Merging #5453 (8e7ac25) into main (1aa0e5a) will decrease coverage by 0.07%.
The diff coverage is 88.09%.

@@            Coverage Diff             @@
##             main    #5453      +/-   ##
==========================================
- Coverage   90.89%   90.81%   -0.08%     
==========================================
  Files         191      193       +2     
  Lines       11419    11419              
==========================================
- Hits        10379    10370       -9     
- Misses        819      827       +8     
- Partials      221      222       +1     
Impacted Files Coverage Δ
component/build_info.go 100.00% <ø> (ø)
config/moved_configmap.go 0.00% <0.00%> (ø)
service/host.go 100.00% <ø> (ø)
confmap/provider.go 89.47% <60.00%> (-10.53%) ⬇️
confmap/confmaptest/configtest.go 100.00% <100.00%> (ø)
confmap/provider/envprovider/provider.go 100.00% <100.00%> (ø)
confmap/provider/fileprovider/provider.go 100.00% <100.00%> (ø)
confmap/provider/internal/provider.go 100.00% <100.00%> (ø)
confmap/provider/yamlprovider/provider.go 100.00% <100.00%> (ø)
service/internal/runtimeinfo/info.go 100.00% <100.00%> (ø)
... and 6 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 58b1466...8e7ac25. Read the comment docs.

confmap/provider.go Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu force-pushed the addnewretfromyaml branch 3 times, most recently from e730d7a to 4483366 Compare June 2, 2022 15:42
confmap/provider.go Outdated Show resolved Hide resolved
@bogdandrutu bogdandrutu force-pushed the addnewretfromyaml branch 2 times, most recently from 1b37a6f to 72e822c Compare June 2, 2022 16:00
…dFromConf

* It is ok to rename NewRetrievedFromMap to NewRetrievedFromConf since it was just moved, not yet released.

Signed-off-by: Bogdan Drutu <[email protected]>
@bogdandrutu bogdandrutu changed the title Avoid duplicate code, add NewRetrievedFromYAML, deprecate NewRetrievedFromConf Avoid duplicate code, add NewRetrievedFromYAML, replace NewRetrievedFromConf with NewRetrieved Jun 2, 2022
@bogdandrutu
Copy link
Member Author

@mx-psi PTAL

@bogdandrutu
Copy link
Member Author

bogdandrutu commented Jun 2, 2022

Split into #5463, #5465, #5467 and #5468

@bogdandrutu bogdandrutu marked this pull request as draft June 2, 2022 22:56
@mx-psi
Copy link
Member

mx-psi commented Jun 3, 2022

All of them LGTM! :)

@bogdandrutu
Copy link
Member Author

All changes are merged from the split PRs.

@bogdandrutu bogdandrutu closed this Jun 6, 2022
@bogdandrutu bogdandrutu deleted the addnewretfromyaml branch October 14, 2024 20:29
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.

2 participants