Open hoyhbx opened 1 year ago
Maybe the operator should reject the request to enable binlog if the pump does not exist.
This may be done with webhook.
I can try to implement the fix if you could point me to the desired location to implement the validation. I think it is also possible to avoid by using the CEL support in the CRD so that the validation is done in the APIServer
TiDB-Operator didn't have a well-implemented webhook now. So using CEL may be a good solution.
Bug Report
What version of Kubernetes are you using?
What version of TiDB Operator are you using?
pingcap/tidb-operator:v1.3.2
What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
What's the status of the TiDB cluster pods?
What did you do?
We enabled the binlog in TiDB, by turning
spec.tidb.binlogEnabled
totrue
What did you expect to see? binlog is enabled by tidb
What did you see instead? TiDB replica keeps crashing. The error log indicates that the TiDB node cannot find pump in the cluster. There seems to be an implicit dependency to enable the binlog for TiDB. Maybe the operator should reject the request to enable binlog if the pump does not exist.