Gendry does know he’s the bastard soon of Robert Baratheon, Melisandre told him back when she was gonna look him for his “King’s blood”. I heard him introduce himself with one of the bastard last names, probably Waters but maybe Rivers? Can’t recall which