moco
moco copied to clipboard
cluster-manager is not started
Describe the bug
cluster-manager is not started.
Environments
- Version: MOCO v0.16.1
To Reproduce
- Create a MySQLCluster
- Wait for the MySQLCluster to become HEALTHY.
- Edit the MySQLCluster so that a reconciliation error occurs.
$kubectl edit mysqlcluster <MySQLCluster> ... spec: mysqlConfigMapName: not-found podTemplate: ...
- Restart the moco-controller
$ kubectl rollout restart -n moco-system deployment moco-controller
After the above steps, a cluster-manager (goroutine) for the MySQLCluster will not start.
Expected behavior
After restarting moco-controller, the moco-controller should start cluster-managers for the existing MySQLClusters.
@masa213f Is this a regression?
@ymmt2005 Probably, this defect has existed for a long time.
@masa213f Ah, I overlooked this.
Edit the MySQLCluster so that a reconciliation error occurs
Yes, it's currently the way it does. Maybe we should add more validation.