So difficult to know what to do for the best (hindsight comes in handy), so maybe settle for some statistics.
Have you told your wife/s.o. about your cd thoughts and actions?
1. Yes - accepted OK (or better)
2. Yes - not accepted but we're still together
3. Yes - not accepted and relationship over
4. No but found out - accepted OK (or better)
5. No but found out - not accepted but we're still together
6. No but found out - not accepted and relationship over
7. No (not yet) - still a secret
In the thread it might also help to know how long the relationship has been going.