HOA aren’t governmental organizations, they are contractual organizations which makes it more complicated than something like a municipal government. They are private entities more akin to a nonprofit corporations than a government. It will really depend on the language of the law. If it actually guarantees the right to grow a garden then it should override HOA rules, if it just restricts lower levels of government from banning gardens then it is unlikely to affect HOA rules.
It seems to be the former - guaranteeing the right to grow a garden:
Section 15. Right to cultivate vegetable gardens.
Notwithstanding any other law, any person may cultivate
vegetable gardens on their own property, or on the private
property of another with the permission of the owner, in any
county, municipality, or other political subdivision of this
state.
HOA aren’t governmental organizations, they are contractual organizations which makes it more complicated than something like a municipal government. They are private entities more akin to a nonprofit corporations than a government. It will really depend on the language of the law. If it actually guarantees the right to grow a garden then it should override HOA rules, if it just restricts lower levels of government from banning gardens then it is unlikely to affect HOA rules.
It seems to be the former - guaranteeing the right to grow a garden:
source