Driving with diabetes

I have recently been diagnosed with diabetes and my doctor has advised that I should notify the DVLA, but I am worried that I might lose my driving licence.