Cal. Harb. & Nav. Code § 800
The master of a vessel is appointed by and holds his appointment at the pleasure of the owner.