Call and talk with your inspector. Mine were pretty friendly. When I applied for the permits they gave me a couple pages of information on NEC Article 680. Check and see what code cycle you are on, we are on 2003.
What I had to to was put a copper lug on the wall and a lug on the top rail. Connect them with a #8 solid bare copper wire, then connect the wire to the bonding lugs on the pump, and the SWCG. I did not need to bring the bonding wire into the outlet or circuit. Bonging and grounding are two different concepts. You also need to bond all metal within 5 feet of the pool like a fence, aluminum siding etc.
As for grounding it depends on how you power your equipment. I have my pump and SWCG in my garage so I ran the equipment of the sub panel in the garage that is feed with 4 wire 220 from the house, with its on grounding rod.
Honestly the best way is to go talk with your inspector, don't be afraid of them, tell them you are a home owner who is just trying to make a safe pool for your family and the should help out. The key is to be upfront with them and dont try to pull any shady work. The key is to be safe not cheap.