GD & steroid shot

Ch

Due to having an emergency classical csection with my first I have to deliver my second via csection at 36 weeks. The plan was to give me the steroid shots for babies lungs the 2 days before my csection, but that changed when I was diagnosed with GD. Now they want to give me the steroids a week before the csection because it will cause my blood sugars to rise dramatically. They told me to prepare to need to be admitted into the hospital for a couple of days so they can get my levels down before baby comes. Just wondering if anyone else has been through this & what their experience was like.

Thank you!