-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: stop upscale while excluded when original replicas set #80
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against f5b313d |
Hi @jonathan-mayer, for sure an improvement! Didn't notice this behavior before, thank you for addressing! Can you try add/refactor test to reflect the new logic? |
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.
LGTM
One use case that could have been lost:
In this case resources scaled down in namespace A won't be scaled up again. I'll try to test this scenario on Saturday. If this is confirmed I will address the problem in this way
@jonathan-mayer would it be ok for you? |
Seems like a good idea. Although, I would change the name of the new cli argument to something like |
@jonathan-mayer even better because it's shorter name, thank you! We'll make this argument default inside the chart. If the user wants the new behavior, it should set a boolean variable to false inside |
Motivation
Currently if a namespace is excluded but a workload in it has the downscaler/original-replicas annotation the downscaler will scale up the workload. This changes this, so that excluding the namespace or workload will make the downscaler ignore it fully.
I will wait for a response from @samuel-esp to see what he thinks about this change.
Changes
Tests done
TODO