Bayern has its standard and they are maintaining that standard. This was why you see that they sacked the previous coach who was unable to strengthen the club and allowed Leverkusen to win the title. Kompany is doing a good job in Bayern, and I believe that he would be able to focus more on UCL to see how Bayern can win it.
Even if Kompany cannot win the Champions League trophy next season, he will not be fired immediately by the Munich team if he can still bring Bayern Munich to become champions again in the Bundesliga. I also think Kompany will be much more serious in coaching the Munich team next season because he also has to prove himself able to compete fiercely in the Champions League with better tactics than last season. But we all know that competing in the Champions League is always difficult and every team always needs more strength from their respective players.
The Bundesliga trophy could save Kompany from being sacked. Kompany already has experience from last season, and that will make him understand how fierce the competition for the Champions League trophy is. In my opinion, with Dortmund not yet fully stable, and the squad overhaul carried out by Leverkusen, Kompany has a high chance of leading Bayern Munich to retain the Bundesliga trophy next season.
A club like Bayern Munich who spends a large budget to build squad depth, of course will put the Champions League as the main priority, but without ignoring the Bundesliga trophy. Realistically, it might take several seasons for Kompany to be able to achieve success in the Champions League, it is not impossible because he has a fairly luxurious squad.