radondb-mysql-kubernetes
radondb-mysql-kubernetes copied to clipboard
*: Optimize cluster condition and state.
trafficstars
What type of PR is this?
/enhancement
Which issue(s) this PR fixes?
Fixes #
What this PR does?
Summary:
- Use separate file(mysqlcluster.go) to save the definition of cluster status.
- Add conditions related API. keep the use of condition is consistent with K8S.
- Unit test for mysql status.
- Judge the status of the cluster according to the change of the
templateandreplicas. - New
kubectl getcolumns: Available - Simplify the logic of status switching