-
Notifications
You must be signed in to change notification settings - Fork 771
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
[feature request] Optimize UnitedDeployment replicas settings #1220
Comments
/label first-good-issue |
@veophi: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I want to try this, can you assign this to me? |
@veophi Since |
@veophi I browsed the code here, and it shows that all subsets which are not set replicas will be averagely allocated by the rest replicas, this means that the current logic allows more than two |
No, we should reject this configuration |
@y-ykcir Sorry, I didn't notice this code before. I think the logic of this code is reasonable and doesn't need any modification. What do you think? |
@veophi I think if spec.replicas is set, the current logic of averaging may be more reasonable. Additionally, it seems that the original logic did not mention the situation where spec.replicas was not set as mentioned in the issue, but instead defaulted to 1. Maybe we can add optimization for this situation? |
@y-ykcir I agree. |
What would you like to be added:
Currently, UnitedDeployment requires the sum of
subsets[x].replicas
must equal tospec.replicas
. Actually, it is very clumsy.We expect that:
spec.replicas
is not set (nil
),subsets[i]
just followssubsets[i].replicas
(should validate all of subsets replicas are notnil
);spec.replicas
is set (notnil
), we should allow at most ONE subset replicas isnil
, and it should equals tospec.replicas - <sum of other subset replicas>
;The text was updated successfully, but these errors were encountered: