68gtxman
I used to reMember
the bounded ground is against code in California.
The bonded ground in a subpanel is against the National Electric Code, so any jurisdiction that uses the NEC would prohibit this. Also prohibited is a separate ground rod. The only earth ground should be at the power meter or main panel. Pools can have a separate ground for their steel or aluminum frames (if used). This is what I recall from years ago, but I would have to brush up on it to be sure today.
If you have a separate ground rod in your pump house and it would allow you to touch something grounded to it while also touching something grounded to the main ground, there could be a potential difference between them, theoretically could be great enough to kill you. This is contrary to common sense as how can you get a shock if both items are grounded, but it is true.
I suggest you have your electrician friend check everything out carefully.