145.21. The council of a municipality may, by by-law, subordinate the issue of a building or subdivision permit or a certificate of authorization or occupancy to the making of an agreement between the applicant and the municipality pertaining to work for the construction of municipal infrastructures or equipment and to the payment or apportionment of expenditures incurred in respect of such work.