Washington (CNN) Energy Secretary Rick Perry said on Thursday that he plans to leave his post later this year after he informed President Donald Trump of his intention to resign.

Perry said in a YouTube video posted Thursday night that he planned to announce his resignation, without giving an exact date. Bloomberg was first to report on Perry's resignation.

"There is much work to be done in these upcoming weeks and I remain fully committed to accomplishing the goals that I set out to accomplish at the beginning of my tenure," Perry said in the video.

Perry has found himself as one of the players in the middle of the controversy stemming from a whistleblower's allegation that Trump asked Ukrainian President Volodomyr Zelensky to investigate former vice president and 2020 Democratic presidential candidate Joe Biden and his son, and that the White House attempted to cover up the conversation. There is no evidence of wrongdoing in Ukraine by either Biden.

Word of Perry's resignation came as Trump traveled to Texas for a rally on Thursday evening. Upon arrival, the President told reporters that he had accepted Perry's resignation.

Read More