// WithMySQLClusterReadyPods sets the reay nodes status
WithMySQLClusterReadyPods sets the reay nodes status
// WithMySQLClusterReadyPods sets the reay nodes status
func WithMySQLClusterReadyPods(ctx context.Context, c client.StatusClient, readyNodes int) MySQLClusterOption {
	return func(mc *mysqlv1alpha1.MysqlCluster) error {
		mc.Status.ReadyNodes = readyNodes
		return c.Status().Update(ctx, mc)
	}
}
func WithMySQLClusterReadyPods ( ctx context . Context , c client . StatusClient , readyNodes int ) MySQLClusterOption { return func ( mc * mysqlv1alpha1 . MysqlCluster ) error { mc . Status . ReadyNodes = readyNodes return c . Status ( ) . Update ( ctx , mc ) } }
WithMySQLClusterReadyPods sets the reay nodes status
WithMySQLClusterReadyPods sets the reay nodes status