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

fix(operator): increment the correct meter to show deployment count #434

Merged
merged 11 commits into from
Nov 22, 2022

Conversation

mowies
Copy link
Member

@mowies mowies commented Nov 17, 2022

This PR

  • fixes a small bug that was actually a typo in the end
  • adds unit tests
  • adds test_utils.go to the codecov ignore list

Fixes #416

@mowies mowies marked this pull request as ready for review November 17, 2022 15:20
@mowies mowies marked this pull request as draft November 17, 2022 15:20
@mowies mowies changed the title fix: Increment the corrent meter to show deployment count fix: increment the correct meter to show deployment count Nov 17, 2022
@mowies mowies force-pushed the fix/416/deployment-count branch from 4c62b18 to a366f51 Compare November 21, 2022 07:16
@codecov
Copy link

codecov bot commented Nov 21, 2022

Codecov Report

Merging #434 (edaf1b9) into main (24efc80) will increase coverage by 3.98%.
The diff coverage is 50.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #434      +/-   ##
==========================================
+ Coverage   37.99%   41.97%   +3.98%     
==========================================
  Files          28       27       -1     
  Lines        2082     2056      -26     
==========================================
+ Hits          791      863      +72     
+ Misses       1227     1114     -113     
- Partials       64       79      +15     
Impacted Files Coverage Δ
...or/controllers/keptnworkloadinstance/controller.go 47.17% <50.00%> (+36.92%) ⬆️
operator/controllers/common/test_utils.go
Flag Coverage Δ
keptn-lifecycle-operator 46.48% <50.00%> (+4.51%) ⬆️
scheduler 4.52% <ø> (ø)

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

Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
@mowies mowies force-pushed the fix/416/deployment-count branch from ec458d5 to e57f53f Compare November 21, 2022 12:08
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Nov 21, 2022

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mowies mowies marked this pull request as ready for review November 21, 2022 13:48
@mowies mowies changed the title fix: increment the correct meter to show deployment count fix(operator): increment the correct meter to show deployment count Nov 21, 2022
Copy link
Contributor

@odubajDT odubajDT left a comment

Choose a reason for hiding this comment

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

lgtm, good work! :)

@mowies mowies merged commit 0287596 into keptn:main Nov 22, 2022
@mowies mowies deleted the fix/416/deployment-count branch November 22, 2022 08:39
@keptn-bot keptn-bot mentioned this pull request Nov 22, 2022
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.

Metric keptn_deployment_count is missing
3 participants