You get the glory for the raid as normal. You will also get the glory for having an additional upgrade.
Plunder rules. Bold added for emphasis.
Rulebook Page 19. wrote:
Take a ship upgrade worth 10 gold that matches the color of the dock and add it to any ship in the region. Gain glory as usual.