Skip to content

Conversation

@younsl
Copy link
Contributor

@younsl younsl commented Aug 5, 2025

Background

Currently, HPA scaling uses default behavior which can cause rapid pod changes and instability. The spec.behavior field allows users to control how fast pods scale up or down, preventing issues like pod flapping and unnecessary scaling. This change adds support for custom scaling rules, enabling users to set specific policies for their workload needs.

Changes

Note

spec.behavior field is optional. If not specified, HPA will use the default scaling behavior as before. This ensures backward compatibility with existing configurations.

younsl added 2 commits August 6, 2025 00:52
* Bump minor chart version from 7.11.0 to 7.12.0

* Update README's configuration section for adding behavior

Signed-off-by: younsl <[email protected]>
@younsl
Copy link
Contributor Author

younsl commented Aug 5, 2025

@pierluigilenoci PTAL

@pierluigilenoci
Copy link
Contributor

@younsl LGTM

@younsl
Copy link
Contributor Author

younsl commented Aug 6, 2025

Thanks for the quick review and LGTM! Really appreciate you taking the time to maintain this project.

@pierluigilenoci pierluigilenoci merged commit cbe5795 into oauth2-proxy:main Aug 6, 2025
1 check passed
@younsl younsl deleted the hpa/behavior branch August 6, 2025 10:55
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.

2 participants