I don't think it will lead to failed medical exam or prevent you from getting a Visa. As long as it's controlled and you disclose it to medical panel and have proper treatment/medication for it. They may request additional tests but rejecting a visa based on the condition is highly unlikely.