Warriors sign Egan until end of 2022