The 25 year old will remain with the Crusaders and Northland during that time.
"It's an awesome opportunity. Of course, I love playing rugby in New Zealand. Love representing my province at home in Northland, playing for the Crusaders and whatever rugby I can for New Zealand. It's awesome," Goodhue said.
The midfielder joins fellow All Blacks Samuel Whitelock, Brodie Retallick, Patrick Tuipulotu, Scott Barrett, Beauden Barrett and Anton Lienert-Brown in recommitting to the end of the next World Cup in France.