-
Notifications
You must be signed in to change notification settings - Fork 12
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
Added ScaledObject Support For Downscaler/Downtime-Replicas Annotation #100
Conversation
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.
Other than these two and me finding it a bit weird needing to specify the downtime replicas on the scaled objects deployments, ... this looks good to me
Co-authored-by: Jonathan Mayer <[email protected]>
I see this concern and I strongly agree with you on a theoretical level, ScaledObject is basically a custom HPA and doesn't hold the concept of "replicas". However since the ScaledObject controls the Deployment/StatefulSet through the pause annotation, it will invalid the |
I am not too familiar with ScaledObjects but I think it would make more sense if we "excluded" the Workloads that are being managed by the ScaledObject and let the ScaledObject scale them according to the pause annotation we set on it when scaling down. |
That's a good approach as well, I included this piece of advice inside the usage notes of the docs in the ScaledObject section |
…a-downtime-replicas
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.
If possible we should consider to automatically exclude the workloads managed by the ScaledObject.
Co-authored-by: Jonathan Mayer <[email protected]>
I'll try to address this inside one of the next releases |
Motivation
Actually ScaledObject doesn't support "downscaler/downtime-replicas" annotation. See issue #96
Changes
Tests done
TODO