The Yankees’ 26-year-old right hander announced Tuesday he has a torn flexor tendon and partially torn UCL, which will require two operations, including Tommy John surgery. He’ll miss the rest of this season and all of 2017.

Eovaldi was forced out of a game last Wednesday after just one inning complaining of pain in his right elbow. After further tests, the dual surgeries were recommended.

Eovaldi, who was brought over from the Marlins after the 2014 season, is on track to become a free agent after the 2017 season. His future with the Yankees — and baseball future, for a pitcher who already underwent Tommy John surgery in high school — is now very much in doubt. The Yankees could non-tender him this offseason.

He had been having a subpar season, at one point demoted to the bullpen. He finishes 2016 at 9-8 with a 4.76 ERA.