tidb-operator icon indicating copy to clipboard operation
tidb-operator copied to clipboard

Operator should only upgrade statefulset that is manged by it

Open cvvz opened this issue 5 years ago • 3 comments

Bug Report

What did you do?

  1. Deploy an operator using kubernetes built-in Statefulset.
  2. 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.

cvvz avatar Jan 08 '21 08:01 cvvz

/assign

cvvz avatar Jan 08 '21 08:01 cvvz

@DanielZhangQD @shonge

cvvz avatar Jan 08 '21 08:01 cvvz

Operator should select StatefulSets to upgrade according to controllerManager. selector. This bug will be fixed in https://github.com/pingcap/tidb-operator/pull/3683

cvvz avatar Jan 08 '21 11:01 cvvz