Your lender will need to follow either Fannie Mae or FHA underwriting guidelines for the length of time needed between the bankruptcy and new loan.  Talk to a CalHFA Preferred Loan Officer for more details.

https://www.calhfa.ca.gov/apps/PLO/