Open hoyhbx opened 1 year ago
discovery
is mainly used for bootstrapping the TidbCluster, so some fields are not well-supported yet. What scenarios do you need to update them?
For example we want to perform some fault injection experiment on Services, and the label is used to select the Services. We later want to remove the label from the discovery
and found that the removal cannot be done. Right now we have to manually remove them
I got it. Could you help to add labels and annotations update for the discovery service?
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?
default
What's the status of the TiDB cluster pods?
What did you do?
We first added a label
key: value
to thediscovery
service, the label is successfully added to thediscovery
service. Then later we wanted to remove that label from thediscovery
service by changing the CR, we found that tidb-operator cannot remove the labels.What did you expect to see? labels and annotations in
spec.discovery
can be added and removed.What did you see instead? The tidb-operator fails to remove labels and annotations from
discovery
service when users specifies the removal in the CR.