Cal. Health & Safety Code § 25249.9
Exemptions from Discharge Prohibition.
(b) Section 25249.5 shall not apply to any discharge or release that meets both of the following criteria:
(2) The discharge or release is in conformity with all other laws and with every applicable regulation, permit, requirement, and order.
In any action brought to enforce Section 25249.5, the burden of showing that a discharge or release meets the criteria of this subdivision shall be on the defendant.