-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: validate fallback configuration #5629
Conversation
Signed-off-by: Guo Peng <370090914@qq.com>
01ef94d
to
34bd8ac
Compare
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.
Looking good! ❤️
Could you add a test for this case? We need to update the changelog as well :)
Sure, I agree. We’ll add a test for this case. |
Signed-off-by: Guo Peng <370090914@qq.com>
Signed-off-by: guopeng <100843245+guopeng0@users.noreply.github.com>
Looks nice! Could you update docs as well to include this new rule? https://github.com/kedacore/keda-docs/blob/main/content/docs/2.14/concepts/admission-webhooks.md |
Sounds good, I will update the documentation accordingly. |
Signed-off-by: guopeng <100843245+guopeng0@users.noreply.github.com>
Hi @JorTurFer |
/run-e2e fallback |
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.
@guopeng0 we should also check that both Replicas
and FailureThreshold
are set if Fallback is specified.
Hi @zroubalik
The relevant code is located in the keda/pkg/fallback/fallback.go |
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.
@guopeng0 could you please fix the conflict in the Changelog? then we are good to go, thanks!
Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
Signed-off-by: guopeng <100843245+guopeng0@users.noreply.github.com>
@zroubalik |
/run-e2e fallback |
@guopeng0 Can you fix the linting issue please? |
@tomkerkhove Sure, I’ll make the changes as soon as possible. |
Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
#5515
fallback feature only supports AverageValue metrics type and it doesn't support CPU and Memory.
To prevent misconfigurations and confusions related with these limitations, we should include a validation for them during the admission process
Checklist
Fixes #5515
Relates to #