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

feat: add support for timeframe in KeptnMetric #1471

Merged
merged 27 commits into from
Jun 22, 2023

Conversation

rakshitgondwal
Copy link
Member

Fixes #981

Changes made:

  • Added range.interval field in KeptnMetric.
  • Set the default value of range.interval to 5m.
  • Added a validating webhook to check if range.interval can be parsed by https://pkg.go.dev/time#ParseDuration.

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@netlify
Copy link

netlify bot commented May 25, 2023

Deploy Preview for keptn-lifecycle-toolkit ready!

Name Link
🔨 Latest commit 661e0db
🔍 Latest deploy log https://app.netlify.com/sites/keptn-lifecycle-toolkit/deploys/6492dcfeef5a440007283134
😎 Deploy Preview https://deploy-preview-1471--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 settings.

@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Merging #1471 (2beea9c) into main (b37aed9) will increase coverage by 0.20%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1471      +/-   ##
==========================================
+ Coverage   63.17%   63.38%   +0.20%     
==========================================
  Files         142      142              
  Lines       10784    10822      +38     
==========================================
+ Hits         6813     6859      +46     
+ Misses       3713     3707       -6     
+ Partials      258      256       -2     
Impacted Files Coverage Δ
metrics-operator/api/v1alpha3/keptnmetric_types.go 100.00% <ø> (ø)
...trics-operator/api/v1alpha3/keptnmetric_webhook.go 90.47% <100.00%> (+90.47%) ⬆️

... and 5 files with indirect coverage changes

Flag Coverage Δ
certificate-operator 68.55% <ø> (ø)
component-tests 60.37% <ø> (+1.88%) ⬆️
lifecycle-operator 84.48% <ø> (ø)
metrics-operator 82.31% <100.00%> (+0.65%) ⬆️
scheduler 30.45% <ø> (ø)

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

Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@rakshitgondwal rakshitgondwal marked this pull request as ready for review May 31, 2023 12:37
@rakshitgondwal rakshitgondwal requested a review from a team as a code owner May 31, 2023 12:37
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
rakshitgondwal and others added 2 commits June 1, 2023 21:28
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
bacherfl
bacherfl previously approved these changes Jun 13, 2023
odubajDT
odubajDT previously approved these changes Jun 14, 2023
@odubajDT odubajDT added the on hold Do not merge yet label Jun 14, 2023
@odubajDT
Copy link
Contributor

Let's merge this PR after the 0.8.0 release

@thisthat
Copy link
Member

thisthat commented Jun 21, 2023

We released KLT v0.8.0 so we can go ahead and merge this PR :) please @rakshitgondwal resolve the conflicts :)

@thisthat thisthat removed the on hold Do not merge yet label Jun 21, 2023
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
@rakshitgondwal rakshitgondwal dismissed stale reviews from odubajDT and bacherfl via 661e0db June 21, 2023 11:20
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
@github-actions github-actions bot added the helm label Jun 21, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jun 21, 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

@odubajDT odubajDT merged commit 4d9ceb7 into keptn:main Jun 22, 2023
38 checks passed
@odubajDT
Copy link
Contributor

Hello @rakshitgondwal, thank you for your contribution! :)

@keptn-bot keptn-bot mentioned this pull request Jun 22, 2023
@rakshitgondwal
Copy link
Member Author

Thanks a lot for the constant help! Really happy to get this feature merged.

Nitishupkr pushed a commit to Nitishupkr/lifecycle-toolkit that referenced this pull request Jun 22, 2023
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
Co-authored-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Nitishupkr <nitishupkr@gmail.com>
StackScribe pushed a commit to StackScribe/lifecycle-toolkit that referenced this pull request Jun 22, 2023
Signed-off-by: Rakshit Gondwal <rakshitgondwal3@gmail.com>
Signed-off-by: Rakshit Gondwal <98955085+rakshitgondwal@users.noreply.github.com>
Co-authored-by: Florian Bacher <florian.bacher@dynatrace.com>
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.

Add support for timeframe in KeptnMetric
5 participants