Secret Invasion dished out plenty of plot twists that reframed events and story arcs in the MCU, and it turns out Don Cheadle already hinted at the War Machine reveal in a loaded statement he made last year.
Source:https://www.cbr.com/don-cheadle-teased-war-machine-skrull-year-before-secret-invasion/