-
Notifications
You must be signed in to change notification settings - Fork 440
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
Expose Horizontal Pod Autoscaler Behavior and add hpa scaledown test #1077
Merged
pavolloffay
merged 17 commits into
open-telemetry:main
from
kevinearls:add-hpa-scaledown-test
Sep 15, 2022
Merged
Changes from 7 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f4abf28
Add scaledown test for autoscaling
kevinearls 7b51fee
Fix nits
kevinearls 43710b9
Appease the linter
kevinearls 7070f4b
Don't use a default, only set scaleUp/scaleDown if they are in the CR
kevinearls ae83264
Removed commented out code
kevinearls 19154be
Change defaults for scaleUp/scaleDown
kevinearls 108d0f1
Update autoscaling scaleup/scaledown
kevinearls 037aa23
Run generate
kevinearls bdc6eb3
Ran make api-docs
kevinearls 60cdfe7
Update HPA implementation to embed HorizontalPodAutoscalerBehavior
kevinearls 54ff0d3
Merge branch 'main' into add-hpa-scaledown-test
kevinearls bcf71e7
Only set behavior if it exists in the collector CR
kevinearls 0f8e029
Aded some unit tests
kevinearls a42084c
Merge branch 'main' into add-hpa-scaledown-test
kevinearls f3a682c
Merge branch 'main' into add-hpa-scaledown-test
kevinearls c14096d
Add kuttl assertion that hpa scaled down
kevinearls 89a2f48
added whitespace to rerun tests
kevinearls File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: did we consider embedding the HPA spec in here? Or at least embed the autoscaling behavior spec here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just adding enough code to be able to get an e2e test to work within the time allocated, which means we need to scale down much quicker that the default 300 seconds.
@pavolloffay what do you think? Do I need to add the other values of PA scaling rules here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my use case, I know that I would like to be able to specify policies and not just
StabilizationWindowSeconds
. Embedding onlyStabilizationWindowSeconds
is going to make it so we need to add in each feature on request, making a code change for each one.