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

[datadogpodautoscalers] Add stabilization window to scaling policy #1519

Merged
merged 10 commits into from
Dec 19, 2024

Conversation

jennchenn
Copy link
Member

@jennchenn jennchenn commented Nov 7, 2024

What does this PR do?

Add stabilization window to scaling policy in DatadogPodAutoscalers CRD

Motivation

We want to support stabilizing recommendations and allow users to configure how long they would like the stabilization windows to be.

Additional Notes

Anything else we should know when reviewing?

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Cluster Agent: v7.56.0

Describe your test plan

Write there any instructions and details you may have to test your PR.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label

@jennchenn jennchenn added enhancement New feature or request qa/skip-qa labels Nov 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.52%. Comparing base (009f82d) to head (3154dca).
Report is 22 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1519      +/-   ##
==========================================
+ Coverage   48.86%   50.52%   +1.65%     
==========================================
  Files         225      228       +3     
  Lines       19959    21425    +1466     
==========================================
+ Hits         9753    10824    +1071     
- Misses       9695    10093     +398     
+ Partials      511      508       -3     
Flag Coverage Δ
unittests 50.52% <ø> (+1.65%) ⬆️

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

Files with missing lines Coverage Δ
...i/datadoghq/v1alpha1/datadogpodautoscaler_types.go 100.00% <ø> (ø)

... and 29 files with indirect coverage changes


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 009f82d...3154dca. Read the comment docs.

@jennchenn jennchenn marked this pull request as ready for review November 8, 2024 20:16
@jennchenn jennchenn requested a review from a team as a code owner November 8, 2024 20:16
@jennchenn jennchenn requested a review from vboulineau November 8, 2024 20:38
// +optional
// +kubebuilder:validation:Minimum=1
// +kubebuilder:validation:Maximum=1800
// +kubebuilder:default:0
Copy link
Contributor

@vboulineau vboulineau Dec 4, 2024

Choose a reason for hiding this comment

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

You don't need to set it, it's implicit. Also not sure how it plays with default being outside of Minimum

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, updated the minimum to 0 and removed the default setting!

@jennchenn jennchenn requested a review from vboulineau December 16, 2024 21:21
@jennchenn jennchenn merged commit 459d28e into main Dec 19, 2024
21 checks passed
@jennchenn jennchenn deleted the jenn/CASCL-61_implement-horizontal-stabilization branch December 19, 2024 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qa/skip-qa
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants