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

chore(metrics-operator): inject ProviderFactory into KeptnMetric reconciler #2062

Merged
merged 6 commits into from
Sep 13, 2023
Merged

chore(metrics-operator): inject ProviderFactory into KeptnMetric reconciler #2062

merged 6 commits into from
Sep 13, 2023

Conversation

odubajDT
Copy link
Contributor

@odubajDT odubajDT commented Sep 8, 2023

Changes

  • inject NewProviderFactory into KeptnMetricReconciler to determine the provider instead calling NewProvider() function
  • unit tests

Fixes: #1978

@netlify
Copy link

netlify bot commented Sep 8, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 83747ef
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/65015e0e667c650008e1fb65
😎 Deploy Preview https://deploy-preview-2062--keptn-lifecycle-toolkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #2062 (83747ef) into main (4a4af79) will increase coverage by 0.18%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2062      +/-   ##
==========================================
+ Coverage   84.07%   84.26%   +0.18%     
==========================================
  Files         150      150              
  Lines        9597     9597              
==========================================
+ Hits         8069     8087      +18     
+ Misses       1240     1223      -17     
+ Partials      288      287       -1     
Files Changed Coverage Δ
metrics-operator/controllers/metrics/controller.go 79.03% <100.00%> (+13.70%) ⬆️

... and 2 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 59.17% <ø> (+0.06%) ⬆️
lifecycle-operator 84.94% <ø> (ø)
metrics-operator 86.10% <100.00%> (+0.67%) ⬆️
scheduler 32.12% <ø> (ø)

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

@odubajDT odubajDT marked this pull request as ready for review September 8, 2023 10:01
@odubajDT odubajDT requested a review from a team as a code owner September 8, 2023 10:01
…nciler

Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
Signed-off-by: odubajDT <ondrej.dubaj@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Sep 13, 2023

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

@bacherfl bacherfl merged commit 579dc10 into keptn:main Sep 13, 2023
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor KeptnMetrics Controller to inject ProviderFactory
4 participants