Skip to content

Bug: When using PodToDelete along with decreasing replicas, the priority should consider PodToDelete list #269

Description

@wu8685

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions