I think it is just a rumor. Nothing special with Kompany, he even failed with Burnley this season. We can see that Burnley finished the season in relegation zone, they are removed from EPL. Kompany also has no experience to manage a team in Bundesliga. He doesn't know Bayern Munich at all. It doesn't make sense if he will be the coach of Bayern Munich in the next season. I think it is just a rumor made by a media to attract people's attention.
To date, Bayern has tried six candidates for the team's technical command, but has been rejected by all of them... Xabi Alonso (from Bayer Leverkusen), Julian Nagelsmann (from Germany), Ralf Rangnick (from Austria), Oliver Glasner ( from Crystal Palace) and Roger Schmidt (from Benfica).
So I'm not too surprised that they're going after someone "less coveted" like Kompany.
Maybe it's not a bad option, a change of scenery could be good for Bayern and also for Kompany who could do a very good job and silence the media's criticism. In any case, I don't believe that Bayer will sign a very long contract with the company... they should start with an evaluation period while keeping an eye on another technician who may be "surplus" on the market.