As part of any agreement, the public entities may provide for contribution or indemnification by any or all of the public entities that are parties to the agreement upon any liability arising out of the performance of the agreement.
Ca. Gov. Code § 895.4