We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Scale in 2 pods, along with more than 2, let's say 3 podToDelete.
2 Pods from podToDelete list should be delete with scale-in label, and 1 Pod should be recreated.
The deletion priority may not consider PodToDelete list. https://github.com/KusionStack/kuperator/blob/v0.5.3/pkg/controllers/collaset/synccontrol/sync_control.go#L403
0.5.0
The text was updated successfully, but these errors were encountered:
In fact, it works as expected now, as following: (1) for pods in podToDelete list, we mark the podWrapper.toDelete=true, otherwise false:
podToDelete
podWrapper.toDelete=true
kuperator/pkg/controllers/collaset/synccontrol/sync_control.go
Line 173 in c224fb2
(2) then we sort and assign toDelete=true pods with highest priority in getPodsToDelete(),:
toDelete=true
getPodsToDelete()
kuperator/pkg/controllers/collaset/synccontrol/scale.go
Line 66 in c224fb2
As a result:
Sorry, something went wrong.
ColdsteelRail
No branches or pull requests
Minimal reproduce step
Scale in 2 pods, along with more than 2, let's say 3 podToDelete.
What did you expect to see?
2 Pods from podToDelete list should be delete with scale-in label, and 1 Pod should be recreated.
What did you see instead
The deletion priority may not consider PodToDelete list.
https://github.com/KusionStack/kuperator/blob/v0.5.3/pkg/controllers/collaset/synccontrol/sync_control.go#L403
What is your KusionStack components and its version?
0.5.0
The text was updated successfully, but these errors were encountered: