I am going to reply to this thread again, see my earlier also.

I was US Navy from 69-74. Served on a SSBN submarine, had a Top Secret+ clearance, worked as a Fire Control Tech, was responsible for launching our missiles if needed to.
I was found out to be a CD when living off base and dressing on my own and did public driving in 72-73 period.

After evaluations by Base Psychiatrists and Security people. They found I was neither a security risk nor homosexual, and told to get back on my regular duties. Was NOT given a dis-honorable discharge. Don't know if my CO or XO were aware of why I had to visit the security and psychiatrists.

After I left service in 1974 and worked as a contractor on US DoD installations. I transitioned MtF as a contractor still working on the same installations in 1977.
Kept my secret or top secret clearances until I retired in 2011. Last 13 years was as a civilian in the DoA.

My experiences may not have been typical, as I have never met another with any similar tales.