pingcap / tidb-operator

TiDB operator creates and manages TiDB clusters running in Kubernetes.
https://docs.pingcap.com/tidb-in-kubernetes/
Apache License 2.0
1.23k stars 498 forks source link

TidbMonitor controller should watch for the event of StatefulSet #3585

Closed DanielZhangQD closed 3 years ago

DanielZhangQD commented 3 years ago

Feature Request

Is your feature request related to a problem? Please describe:

Since we have migrated the deployment resource of TidbMonitor from deployment to StatefulSet in https://github.com/pingcap/tidb-operator/pull/3440, the TidbMonitor controller should watch for the event of StatefulSet here https://github.com/pingcap/tidb-operator/blob/master/pkg/controller/tidbmonitor/tidb_monitor_controller.go#L51. Describe the feature you'd like:

Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:

DanielZhangQD commented 3 years ago

cc @mikechengwei

mikechengwei commented 3 years ago

/assgin