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

[COST-4080] Replace default source name with cluster-uuid if CR is not updated #196

Merged
merged 5 commits into from
Aug 11, 2023

Conversation

djnakabaale
Copy link
Contributor

@djnakabaale djnakabaale commented Aug 9, 2023

Jira Ticket

COST-4080

Description

  • Use an empty string placeholder vs INSERT-SOURCE-NAME in the spec source name field.
  • if the spec source name value is an empty string, replace it with cluster id.

@djnakabaale djnakabaale self-assigned this Aug 9, 2023
@codecov
Copy link

codecov bot commented Aug 9, 2023

Codecov Report

Merging #196 (e03142a) into main (d05c07b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #196      +/-   ##
==========================================
+ Coverage   89.17%   89.19%   +0.01%     
==========================================
  Files          11       11              
  Lines        2457     2461       +4     
==========================================
+ Hits         2191     2195       +4     
  Misses        187      187              
  Partials       79       79              
Flag Coverage Δ
unittests 89.19% <100.00%> (+0.01%) ⬆️

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

Files Changed Coverage Δ
controllers/kokumetricsconfig_controller.go 85.01% <100.00%> (+0.10%) ⬆️
sources/handler.go 96.60% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

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

@djnakabaale djnakabaale marked this pull request as ready for review August 10, 2023 20:16
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

Copy link
Member

@maskarb maskarb left a comment

Choose a reason for hiding this comment

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

lgtm! Nicely done!

@djnakabaale djnakabaale merged commit b21f04c into main Aug 11, 2023
@djnakabaale djnakabaale deleted the cost-4080-default-src-name branch August 11, 2023 20:20
maskarb pushed a commit that referenced this pull request Sep 8, 2023
…t updated (#196)

* use cluster id as default source name

* replace default source name after cluster id is obtained
update unit test
use empty str vs null

* update doc

* add existing source name to error msg
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