Gerhard Schröder ("affectionately" called Gasherd) was the chancellor until 2005, not specifically in charge of energy policy. He also hasn't been politically in charge of anything for the last 15 years. The nuclear shutdown now in place (after a few reversals, exiting the exit started by Schröder) was triggered by Merkel, who isn't involved (at least yet) with russian gas money.
The current minister in charge (Robert Habeck) is part of the greens, who were one the most parties most opposed to russia and it's energy (staunchly against North Stream 2) and Habeck shares these views according to his public mentions.