zenemy
Someone who, at first, appears to be your mortal enemy, but really teaches you a valuable lesson about yourself. (from Zen Buddhist philosophy)
My boss really pissed me off by hitting on my married coworkers, but it really just showed me the error of MY ways. He is truly my zenemy.