In my case there was a middle ground between explicitly telling my partner about it and keeping it secret. A couple years ago while living out in the countryside I was doing some wood working and grazed my hand with a chisel. Stupid mistake, I know. Anyway the cut was on my dominant right hand, which I usually use to stimulate my partner. We were making out, and I jokingly mentioned that there was no way we'd be able to go any further. I didn't want to get her wetness all over an open wound.
She was disappointed, but agreed it was probably not a good idea. I pretended to be upset too, before casually mentioning the only way it might work would be if I wore one of the nitrile gloves we had for cleaning. But still, too weird, right? By this point she was really turned on. We'd been making out for a while. After a little back and forth, again with me pretending to be more reluctant than she was, I agreed to try it out. Still, it was kind of weird, right? There was no way we'd be able to get in the mood wearing the cleaning gloves. There weren't any realistic times where someone touched someone's genitals while wearing gloves.
At this point the idea of gloves being worn in medical situations came up. I pretended to give her an exam, wearing a glove to cover my injury. I made sure I did a good job on my end. After I was finished touching her, I said it was really hot, and asked her to try it on me. She agreed, pulled on some gloves, and went to work.
Little by little, we worked it in to our regular routine. On some level I was not being completely honest. Gloves have been a turn-on long before the incident with the chisel, but the result is the same. I don't think everyone needs to come out with the full, whole truth directly, explaining everything. I think there are ways to ease into it and see where it goes. I'm still really into it, with her not as much, but it's something we do from time to time.