My HOA defines the acceptable types of trees, plants, and shrubs that can be planted. I don’t know if vegetables are restricted, but you cannot plant anything you want.
What business does a bunch of Wikipedia admins have to rule what I can plant in my own backyard. Mind, I get concerns about invasive plants, water conservation or agricultural pathogens, but that's not what HOA's are usually about. They will tell you you can't paint your shed pink.