According to TVLine, the actress is set to play a character named Carmen Tibideaux, and will appear in three episodes.
The character will be a drama professor at the New York Academy of the Dramatic Arts, who travels to Ohio to judge Kurt (Chris Colfer) and Rachel's (Lea Michele) auditions.
Goldberg, who is currently a host on ABC's The View, recently signed up to appear in family comedy The Middle.
Matt Bomer, star of White Collar, has also been announced as an upcoming guest star, playing Darren Criss's on-screen brother.
The first episode of Whoopi Goldberg's Glee appearance is scheduled to air on May 1 on Fox in the US and later on Sky1 in the UK.