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

General: validate replica counts when creating scaled objects #5289

Merged

Conversation

BojanZelic
Copy link
Contributor

@BojanZelic BojanZelic commented Dec 14, 2023

Validates replica counts with the validating webhook to ensure users dont misconfigure this setting when creating/updating scaledObjects;

also moved the validation logic to v1alpha1 so that it could be reused in the controller & webhook

Checklist

  • Tests have been added
  • Changelog has been updated and is aligned with our changelog requirements
  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #5288

@BojanZelic BojanZelic requested a review from a team as a code owner December 14, 2023 20:50
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

While you are waiting, make sure to:

Learn more about:

@BojanZelic BojanZelic force-pushed the validating-webhook-validate-replica-counts branch from bdb8024 to db2969f Compare December 14, 2023 20:52
@zroubalik
Copy link
Member

zroubalik commented Dec 15, 2023

/run-e2e internal
Update: You can check the progress here

Copy link
Member

@zroubalik zroubalik left a comment

Choose a reason for hiding this comment

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

LGTM, good catch, thanks!

@zroubalik zroubalik enabled auto-merge (squash) December 15, 2023 11:22
@zroubalik zroubalik merged commit 6f540b1 into kedacore:main Dec 15, 2023
18 checks passed
toniiiik pushed a commit to toniiiik/keda that referenced this pull request Jan 15, 2024
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.

Oscillating Pod counts when misconfigured replicas
2 participants