Open kos-team opened 1 week ago
Have you tried to set the replicas
to 0
instead of to remove the whole section?
@csuzhangxc Thanks for the workaround, we tried to set the replicas
to 0
and it works.
It would be nice to have a more declarative interface though.
Bug Report
What version of Kubernetes are you using? Client Version: v1.31.1 Kustomize Version: v5.4.2
What version of TiDB Operator are you using? v1.6.0
What did you do? We deployed a cluster with TiProxy and then try to remove the TiProxy from the cluster
How to reproduce
Deploy a TiDB cluster with TiProxy enabled, for example:
Remove
spec.tiproxy
:What did you expect to see? TiProxy should be removed from cluster and all TiProxy Pods should be deleted.
What did you see instead? The TiProxy Pods are undeleted and still in
Running
state.Root Cause In the tiproxyMemberManager's Sync() function, it directly returns if the spec.tiproxy is set to
nil
. The deletion logic is not implemented.