tidb-operator
tidb-operator copied to clipboard
Operator should only upgrade statefulset that is manged by it
Bug Report
What did you do?
- Deploy an operator using kubernetes built-in Statefulset.
- Deploy an operator with different controllerManager. selector value, and set feature AdvancedStatefulSet=true, which means using
AdvancedStatefulset.
What did you expect to see? These two operators won't influence each other.
What did you see instead? When the operator with feature AdvancedStatefulSet=true was deployed, it upgraded all the built-in StatefulSets in kubernetes into AdvancedStatefulSet, some of them belong to the TidbCluster that should not be managed by this operator.
/assign
@DanielZhangQD @shonge
Operator should select StatefulSets to upgrade according to controllerManager. selector. This bug will be fixed in https://github.com/pingcap/tidb-operator/pull/3683