You owe it to your spouse, and yourself, to be honest. You have already admitted it to yourself; that's the first step. Now, the hardest step: telling your spouse. Although painful for both of you, tell the truth. You, and eventually your spouse, will feel better in the end.