openkruise / kruise

Automated management of large-scale applications on Kubernetes (incubating project under CNCF)

Home Page:https://openkruise.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feature request] WorkloadSpread supports option to disable/ignore StatefulSet ordinal check

Spground opened this issue · comments

What would you like to be added:

Add label or field to give uses an option to disable StatefulSet ordinal checking in WorkloadSpread.

Why is this needed:

Generally speaking, Pods managed by StatefulSet has name with ordinal format. However, Pods will be delegated to other workload in some cases, which lead Pods haven't ordinal name conventions.

To skip ordinal checking, we need to give users an option.

Related codes:

case controllerKindSts.Kind: