Signed-off-by: Aylei
What problem does this PR solve?
close #1192
What is changed and how does it work?
New controller logic to sync tidb configmap.
Generify the CreateOrUpdate logic and the template rendering code.
This PR introduce a new dependency controller-runtime in favor of its generic client for kubernetes.
Check List
Tests
- E2E test
Does this PR introduce a user-facing change?:
release-note
The configuration of tidb-server can be managed in the <code>TidbCluster resource now.
check the e2e case to get an overview of this PR: https://github.com/pingcap/tidb-operator/pull/1291/files#diff-92579a43c91e473b9716eeeee2068004
PTAL